Skip to content
Permalink
Browse files

add cltk_normalize() to lemma example

coming from #968
  • Loading branch information
kylepjohnson committed Mar 6, 2020
1 parent d276b4c commit baadb7f7316a131b16768aa8e0c7d4665f8b3898
Showing with 7 additions and 3 deletions.
  1. +7 −3 docs/greek.rst
@@ -414,10 +414,14 @@ The lemmatizer offers several input and output options. For text input, it can t
In [2]: sentence = 'τὰ γὰρ πρὸ αὐτῶν καὶ τὰ ἔτι παλαίτερα σαφῶς μὲν εὑρεῖν διὰ χρόνου πλῆθος ἀδύνατα ἦν'
In [3]: lemmatizer = LemmaReplacer('greek')
In [3]: from cltk.corpus.utils.formatter import cltk_normalize
In [4]: sentence = cltk_normalize(sentence) # can help when using certain texts
In [4]: lemmatizer.lemmatize(sentence)
Out[4]:
In [5]: lemmatizer = LemmaReplacer('greek')
In [6]: lemmatizer.lemmatize(sentence)
Out[6]:
['τὰ',
'γὰρ',
'πρὸ',

0 comments on commit baadb7f

Please sign in to comment.
You can’t perform that action at this time.