ckipnlp.container.parsed module

This module provides containers for parsed sentences.

class ckipnlp.container.parsed.ParsedParagraph(initlist=None)[source]

Bases: ckipnlp.container.base.BaseList0

A list of parsed sentence.

Data Structure Examples

Text/Dict/List format

Used for from_text(), to_text(), from_dict(), to_dict(), from_list(), and to_list().

[
    'S(Head:Nab:中文字|particle:Td:耶)',                     # Sentence 1
    '%(particle:I:啊|manner:Dh:哈|manner:Dh:哈|time:Dh:哈)', # Sentence 2
]
item_class

alias of builtins.str