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:
object
A sentence with Entity/Relation annotations.
- class architxt.nlp.model.Relation(src, dst, name)[source]#
Bases:
object
A relation between two entities.