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
;; The first three lines of this file were inserted by DrScheme. | |
;; They record information about the language level. | |
#reader(lib "plai-pretty-big-reader.ss" "plai")((modname proje) (read-case-sensitive #t) (teachpacks ())) | |
;; Comp 314 - Project 9 | |
;; Anıl Özselgin (10276040) - Ahmet Sevimli (10276043) | |
(define p3->p1 | |
(lambda (f) | |
(lambda (p1) | |
(lambda (p2) |
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