Carlos-Francisco Méndez-Cruz

Conditional Random Fields

...@@ -53,6 +53,7 @@ from nltk.corpus import stopwords ...@@ -53,6 +53,7 @@ from nltk.corpus import stopwords
53 def word2features(sent, i): 53 def word2features(sent, i):
54 listElem = sent[i].split('|') 54 listElem = sent[i].split('|')
55 word = listElem[0] 55 word = listElem[0]
56 + print("word: {}".format(word))
56 lemma = listElem[1] 57 lemma = listElem[1]
57 postag = listElem[2] 58 postag = listElem[2]
58 59
......