class documentation
class Senna(TaggerI): (source)
Constructor: Senna(senna_path, operations, encoding)
Undocumented
Method | __init__ |
Undocumented |
Method | executable |
The function that determines the system specific binary that should be used in the pipeline. In case, the system is not known the default senna binary will be used. |
Method | tag |
Applies the specified operation(s) on a list of tokens. |
Method | tag |
Applies the tag method over a list of sentences. This method will return a list of dictionaries. Every dictionary will contain a word with its calculated annotations/tags. |
Constant | SUPPORTED |
Undocumented |
Instance Variable | operations |
Undocumented |
Method | _map |
A method that calculates the order of the columns that SENNA pipeline will output the tags into. This depends on the operations being ordered. |
Instance Variable | _encoding |
Undocumented |
Instance Variable | _path |
Undocumented |
Inherited from TaggerI
:
Method | evaluate |
Score the accuracy of the tagger against the gold standard. Strip the tags from the gold standard text, retag it using the tagger, then compute the accuracy score. |
Method | _check |
Undocumented |
The function that determines the system specific binary that should be used in the pipeline. In case, the system is not known the default senna binary will be used.
overrides
nltk.tag.api.TaggerI.tag_sents
Applies the tag method over a list of sentences. This method will return a list of dictionaries. Every dictionary will contain a word with its calculated annotations/tags.