Objects

Objects for typing and validation

Module: core



Entity


__init__

Arguments:

  • start (int): Start position of entity in text.

  • end (int): End position of entity in text.

  • span (str): Text value of entity.

  • score (float): Probability score.




ClassifiedEntity

Subcalss of Entity.


__init__

Arguments:

  • start (int): Start position of entity in text.

  • end (int): End position of entity in text.

  • span (str): Text value of entity.

  • score (float): Probability score.

  • entity (str): Entity label.




EntityType

Type variable bounded to Entity.



Last updated