Sentence Split
This module splits the report into sentences using NLTK.
Options
Option name |
Default |
Description |
|---|---|---|
–newline |
|
Whether to treat newlines as sentence breaks. |
Example Usage
$ radtext-ssplit -i /path/to/input.xml -o /path/to/output.xml
from radtext.models.sentence_split_nltk import BioCSSplitterNLTK
processor = BioCSSplitterNLTK(newline=argv['--newline'])