This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Letter Codes | |
------------------------ | |
LETTER Windows-1254 ISO-8859-9 latin5 UTF-8 | |
ğ b'\xf0' b'\xf0' b'\xf0' b'\xc4\x9f' | |
ı b'\xfd' b'\xfd' b'\xfd' b'\xc4\xb1' | |
ş b'\xfe' b'\xfe' b'\xfe' b'\xc5\x9f' | |
ü b'\xfc' b'\xfc' b'\xfc' b'\xc3\xbc' | |
ö b'\xf6' b'\xf6' b'\xf6' b'\xc3\xb6' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
import numpy | |
from nltk.cluster import KMeansClusterer, GAAClusterer, euclidean_distance | |
import nltk.corpus | |
from nltk import decorators | |
import nltk.stem | |
stemmer_func = nltk.stem.snowball.EnglishStemmer().stem | |
stopwords = set(nltk.corpus.stopwords.words('english')) |
NewerOlder