pyknp_eventgraph.sentence

class pyknp_eventgraph.sentence.Sentence(document, sid, ssid, blist=None)[source]

Bases: pyknp_eventgraph.component.Component

A sentence is a collection of events.

document: Document

A document that includes this sentence.

sid: str

An original sentence ID.

ssid: int

A serial sentence ID.

blist: :class:`pyknp.knp.blist.BList`, optional

A list of bunsetsu-s.

events: List[Event]

A list of events in this sentence.

to_dict()[source]

Convert this object into a dictionary.

Return type

dict

to_string()[source]

Convert this object into a string.

Return type

str

property mrphs

A tokenized surface string.

Return type

str

property reps

A representative string.

Return type

str

property surf

A surface string.

Return type

str