kyoto_reader.ne module¶
-
class
kyoto_reader.ne.
NamedEntity
(category: str, name: str, sentence: kyoto_reader.sentence.Sentence, mid_range: range, mrph2dmid: Dict[pyknp.juman.morpheme.Morpheme, int])[source]¶ Bases:
object
A class to represent a named entity (NE).
Parameters: - category (str) – A category of a NE.
- name (str) – A name of a NE.
- sentence (Sentence) – A sentence that contains a NE.
- mid_range (range) – A range of IDs of morphemes that constitute a NE.
- mrph2dmid (dict) – A mapping from morpheme to its document-wide ID.
-
category
¶ A category of a NE.
Type: str
-
name
¶ A name of a NE.
Type: str
-
sid
¶ A sentence ID of a sentence that contains a NE.
Type: str
-
mid_range
¶ A range of IDs of morphemes that constitute a NE.
Type: range
-
dmid_range
¶ A range of document-wide IDs of morphemes that constitute a NE.
Type: range