MCPcopy Index your code
hub / github.com/clips/pattern / __init__

Method __init__

pattern/text/search.py:23–26  ·  view source on GitHub ↗

A list of sentences, where each sentence is separated by a period.

(self, string="", token=["word"])

Source from the content-addressed store, hash-verified

21class Text(list):
22
23 def __init__(self, string="", token=["word"]):
24 """ A list of sentences, where each sentence is separated by a period.
25 """
26 list.__init__(self, (Sentence(s+".", token) for s in string.split(".")))
27
28 @property
29 def sentences(self):

Callers 4

__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45

Calls 2

SentenceClass · 0.70
splitMethod · 0.45

Tested by

no test coverage detected