summarization.syntactic_unit
– Syntactic Unit class¶This module contains implementation of SyntacticUnit class. It generally used while text cleaning.
SyntacticUnit
represents printable version of provided text.
gensim.summarization.syntactic_unit.
SyntacticUnit
(text, token=None, tag=None, index=-1)¶Bases: object
SyntacticUnit class.
text
¶Input text.
str
token
¶Tokenized text.
str
tag
¶Tag of unit, optional.
str
index
¶Index of sytactic unit in corpus, optional.
int
score
¶Score of synctatic unit, optional.
float
text (str) – Input text.
token (str) – Tokenized text, optional.
tag (str) – Tag of unit, optional.