Esempio n. 1
0
 def __init__(self):
     self.grammeme_vectorizer_input = GrammemeVectorizer()
     self.grammeme_vectorizer_output = GrammemeVectorizer()
     self.word_dictionary = WordDictionary()
     self.char_set = set()
     self.morph = MorphAnalyzer() # pyMorphy2
     self.converter = converters.converter('opencorpora-int', 'ud14')
Esempio n. 2
0
 def __init__(self):
     self.morph = MorphAnalyzer()  # использ. pyMorphy2
     self.converter = converters.converter('opencorpora-int', 'ud14')
     self.grammeme_vectorizer_input = GrammemeVectorizer()
     self.grammeme_vectorizer_output = GrammemeVectorizer()
     self.word_dictionary = WordDictionary()
     self.char_set = ""
     self.train_model = None
     self.main_model = None