from nltk.corpus.reader import TaggedCorpusReader
from nltk.tag import AffixTagger
import pickle
#trainer
reader = TaggedCorpusReader('.', 'greek_training_set.pos')
train_sents = reader.tagged_sents()
two_prefix_tagger = AffixTagger(train_sents, affix_length=2)
two_prefix_tagger.evaluate(train_sents)
three_prefix_tagger = AffixTagger(train_sents, affix_length=3)
three_prefix_tagger.evaluate(train_sents)
four_prefix_tagger = AffixTagger(train_sents, affix_length=4)
four_prefix_tagger.evaluate(train_sents)