|
getNgramsByLine
getNgramsByLine (self, ngramSize)
|
Originally named comp_ngrams, and separated in advas-0.2.5
Calculates the ngrams line by line. The basis is the Advas
object.
In: |
word |
term, for which the ngrams are calculated |
|
ngramSize |
sets the length of the ngrams — the number of
characters
|
Out: |
|
the list of ngrams. If ngramSize is 0, the
return value is an empty list. |
For more information about ngrams, see the according article on Wikipedia.
|
|