skillner.text_loaders.StrTextLoader#

class skillner.text_loaders.StrTextLoader(text: str)[source]#

Loader of text as string.

Used in a pipeline to create the sentences of document.

Parameters:
text: str

text used to create the document sentences.

__init__(text: str) None[source]#

Methods

__init__(text)

enrich_doc(doc)

Create document sentences.

enrich_doc(doc: Document) None[source]#

Create document sentences.

Parameters:
doc: Document

The document to enrich with sentences.