NlpToolkit-AnnotatedSentence

Annotated Sentence Processing Library


Keywords
annotation-processing, morphological-disambiguator, ner-annotation, semantic-role-labeling, shallow-parse-annotation, word-sense-disambiguation
Install
pip install NlpToolkit-AnnotatedSentence==1.0.16

Documentation

AnnotatedSentence

Data Format

The structure of a sample annotated word is as follows:

{turkish=yatırımcılar}
{analysis=yatırımcı+NOUN+A3PL+PNON+NOM}
{semantics=0841060}
{namedEntity=NONE}
{shallowParse=ÖZNE}
{propbank=ARG0:0006410}

As is self-explanatory, 'turkish' tag shows the original Turkish word; 'analysis' tag shows the correct morphological parse of that word; 'semantics' tag shows the ID of the correct sense of that word; 'namedEntity' tag shows the named entity tag of that word; 'shallowParse' tag shows the semantic role of that word; 'propbank' tag shows the semantic role of that word for the verb synset id (frame id in the frame file) which is also given in that tag.