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.
- class architxt.nlp.model.TreeEntity(name, positions, value=None)[source]#
Bases:
objectAn entity in a tree, the name is associate with a list of leaf tree position.
- positions#
Type:
list[TreePosition]
- property root_pos#
Get the position that covers every position of the entity.
- value#
Type:
str | None