1. okfn
  2. openletters

Commits

ipe  committed ec48ea6

removed experimental nltk import

  • Participants
  • Parent commits 60e9a2b
  • Branches default

Comments (0)

Files changed (1)

File openletters/controllers/data.py

View file
 
 from pylons import request, response, session, tmpl_context as c
 
-from nltk.corpus import wordnet as wn
+#from nltk.corpus import wordnet as wn
 #from ofs.local import OFS
 
 from openletters import model
             json = json_transform()
             return json.corr_json(author)
     
-    def lemmatise (self, author=None):
-        word_lem = set()
-        ret_lem = []
-        for i in wn.synsets(author):
-            [word_lem.add(lemma.name) for lemma in i.lemmas]
-            
-        ret_lem = list(word_lem)
-        return ret_lem
+ #   def lemmatise (self, author=None):
+ #       word_lem = set()
+ #       ret_lem = []
+ #       for i in wn.synsets(author):
+ #           [word_lem.add(lemma.name) for lemma in i.lemmas]
+ #           
+ #       ret_lem = list(word_lem)
+ #       return ret_lem