Service class documentation¶
-
class
nlp_architect.common.core_nlp_doc.
CoreNLPDoc
(doc_text: str = '', sentences: list = None)[source]¶ Object for core-components (POS, Dependency Relations, etc).
-
_doc_text
¶ the doc text
-
_sentences
¶ list of sentences, each word in a sentence is represented by a dictionary, structured as follows: {‘start’: (int), ‘len’: (int), ‘pos’: (str), ‘ner’: (str), ‘lemma’: (str), ‘gov’: (int), ‘rel’: (str)}
-
-
class
nlp_architect.common.high_level_doc.
HighLevelDoc
[source]¶ object for annotation documents
Parameters: - self.doc_text (str) – document text
- self.annotation_set (list(str)) – list of all annotations in doc
- self.spans (list(dict)) – list of span dict, each span_dict is structured as follows: { ‘end’: (int), ‘start’: (int), ‘type’: (str) string of annotation }