architxt.nlp.model#
Classes
| A sentence with Entity/Relation annotations. |
| A named entity. |
| A relation between two entities. |
| An entity in a tree, the name is associate with a list of leaf tree position. |
| A relation between two entities in a tree. |
- class architxt.nlp.model.AnnotatedSentence(txt, entities, rels)[source]#
Bases:
objectA sentence with Entity/Relation annotations.
- class architxt.nlp.model.Relation(src, dst, name)[source]#
Bases:
objectA relation between two entities.