Skip to content

Instantly share code, notes, and snippets.

View karimkhanp's full-sized avatar

Karimkhan karimkhanp

View GitHub Profile
@karimkhanp
karimkhanp / ar2en
Created July 3, 2014 02:54
arabic to english convertion
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Arabic-English Transliteration</title>
@karimkhanp
karimkhanp / sentiment analysis
Last active June 22, 2017 04:34
Opensource sentiment analysis resources
1) Python NLTK can do Sentiment Analysis based on Classification Algos or NLP tools in it.
2) R has tm.sentiment package which comes with sentiment words and ML based tecniques.
3) Rapidminner, KNIME etc gives classification based on algorithms available in the tool.
3) GATE you can have ML bases (SVM) and rule based or rule + lexion based sentiment analysis
4) OpenNLP provides facility to develop maxent based sentiment analysis
5) Lingpipe provides facility to develop classification based sentiment analysis algos implemented in it
6) Apache Mahout has Naive Bayes and CBayes for classification based Sentiment Analysis
7) Weka has Naive Bayes, SVM, KNN etc.. to develop Sentiment Analysis
8) Python Pattern has Classification algos
@karimkhanp
karimkhanp / resource
Last active August 29, 2015 14:01 — forked from anonymous/resource
linguistic resources
Link to large linguistic resource : http://www-01.sil.org/linguistics/etext.html
English word list : http://www.umich.edu/~archive/linguistics/texts/lexica/
Moby Thesaurus (they claims Moby Thesaurus is the largest and most comprehensive thesaurus data source in English) : http://icon.shef.ac.uk/Moby/mthes.html
English word list : http://www-01.sil.org/linguistics/wordlists/english/wordlist/wordsEn.txt
Words list in five languages : http://www.dcs.shef.ac.uk/research/ilash/Moby/mlang.tar.Z
Mobi resources : http://icon.shef.ac.uk/Moby/
*damn
*dyke
*fuck*
*shit*
4r5e
5h1t
5hit
@$$
a55
ahole
@karimkhanp
karimkhanp / Amazon_README.md
Last active August 29, 2015 14:00 — forked from aronwoost/README.md
lamp on amazon ec2

Launch the instance and connect with ssh.

##Update the server

sudo yum update

##Install php and MySQL packages

@karimkhanp
karimkhanp / mysql_queries
Last active August 29, 2015 13:57
mysql queries for insert, update, check record existence with sql prevention
<?php
//INSERT
function store_feedback($message,$name,$email)
{
$con = mysqli_connect('127.0.0.1', 'root', '', 'mysql');
if (mysqli_connect_errno())
{
echo "Failed to connect to MySQL: " . mysqli_connect_error();
@karimkhanp
karimkhanp / onloadevent
Created January 3, 2014 09:39
jquery onload
<?php
// A $( document ).ready() block.
$( document ).ready(function() {
console.log( "ready!" );
});
// ---------------
// Shorthand for $( document ).ready()
$(function() {
@karimkhanp
karimkhanp / abc
Created November 13, 2012 09:28
package main
import "fmt"
func add(x int, y int) int {
return x + y
}
func main() {