ckipnlp.container.text module

This module provides containers for text sentences.

class ckipnlp.container.text.TextParagraph(initlist=None)[source]

Bases: ckipnlp.container.base.BaseList0

A list of text sentence.

Data Structure Examples

Text/Dict/List format

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

[
    '中文字喔', # Sentence 1
    '啊哈哈哈', # Sentence 2
]
item_class

alias of builtins.str