class documentation

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_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.
Constant SUPPORTED_OPERATIONS 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_params Undocumented
def __init__(self, senna_path, operations, encoding='utf-8'): (source)

Undocumented

def executable(self, base_path): (source)

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.

def tag(self, tokens): (source)

Applies the specified operation(s) on a list of tokens.

def tag_sents(self, sentences): (source)

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.

SUPPORTED_OPERATIONS: list[str] = (source)

Undocumented

Value
['pos', 'chk', 'ner']
operations = (source)

Undocumented

def _map(self): (source)

A method that calculates the order of the columns that SENNA pipeline will output the tags into. This depends on the operations being ordered.

_encoding = (source)

Undocumented

Undocumented