pyknp_eventgraph.event¶
-
class
pyknp_eventgraph.event.
Event
(sentence, evid, sid, ssid, start=None, head=None, end=None)[source]¶ Bases:
pyknp_eventgraph.component.Component
Event is the basic information unit of EventGraph. Event is closely related to PAS but more application-oriented with respect to the following points:
Semantic heaviness: Some predicates are too semantically light for applications to treat as information units. EventGraph constrains an event to have a semantically heavy predicate.
Rich linguistic features: Linguistic features such as tense and modality are assigned to events.
-
sentence
: :class:`.Sentence`¶ A sentence to which this event belongs.
-
start
: :class:`pyknp.knp.tag.Tag`, optional¶ A start tag.
-
head
: :class:`pyknp.knp.tag.Tag`, optional¶ A head tag.
-
end
: :class:`pyknp.knp.tag.Tag`, optional¶ An end tag.
-
pas
: PAS, optional¶ A predicate argument structure.
-
outgoing_relations
: List[Relation]¶ A list of relations where this event is the modifier.
-
incoming_relations
: List[Relation]¶ A list of relations where this event is the head.
-
features
: Features, optional¶ Linguistic features.
-
parent
: Event, optional¶ A parent event.
-
children
: List[Event]¶ A list of child events.
-
head_base_phrase
: Token, optional¶ A head basic phrase.
-
normalized_mrphs_with_mark_
(include_modifiers=False)[source]¶ A tokenized/normalized surface string with marks.
-
normalized_mrphs_with_mark_without_exophora_
(include_modifiers=False)[source]¶ A tokenized/normalized surface string with marks but without exophora.
-
normalized_mrphs_without_exophora_
(include_modifiers=False)[source]¶ A tokenized/normalized surface string without exophora.
-
normalized_reps_with_mark_
(include_modifiers=False)[source]¶ A normalized representative string with marks.
-
property
normalized_mrphs_with_mark
¶ A tokenized/normalized surface string with marks.
- Return type
-
property
normalized_mrphs_with_mark_without_exophora
¶ A tokenized/normalized surface string with marks but without exophora.
- Return type
-
property
normalized_mrphs_without_exophora
¶ A tokenized/normalized surface string without exophora.
- Return type