def test_create(self): lemmatizer = Lemmatizer({}, {}, {}) strings = StringStore() lemmatizer = Lemmatizer({}, {}, {}) morphology = Morphology(strings, {}, lemmatizer)
def morphology(): lemmatizer = Lemmatizer(Lookups()) return Morphology(StringStore(), {}, lemmatizer)
def morphology(): morphology = Morphology(StringStore()) morphology.add("Feat1=Val1|Feat2=Val2") morphology.add("Feat3=Val3|Feat4=Val4") return morphology
def test_pickle(): morphology = Morphology(StringStore(), {}, Lemmatizer({}, {}, {})) file_ = io.BytesIO() pickle.dump(morphology, file_)
def morphology(): return Morphology(StringStore())
def morphology(): return Morphology(StringStore(), {}, Lemmatizer())