Class IrishSentenceBankDocument
java.lang.Object
opennlp.tools.formats.irishsentencebank.IrishSentenceBankDocument
A structure to hold an Irish Sentence Bank document, which is a collection
of tokenized sentences.
The sentence bank can be downloaded from this website.
It was originally published and described http://www.lexiconista.com/datasets/sentencebank-ga/, yet this page was gone when last checked in December 2022.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic class -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidstatic IrishSentenceBankDocumentparse(InputStream is) Parses the data provided via anInputStreaminto aIrishSentenceBankDocument.
-
Constructor Details
-
IrishSentenceBankDocument
public IrishSentenceBankDocument()Initializes an emptyIrishSentenceBankDocument.
-
-
Method Details
-
add
- Parameters:
sent- AIrishSentenceBankDocument.IrishSentenceBankSentenceto be added.
-
getSentences
- Returns:
- Retrieves an unmodifiable list of all
sentences.
-
parse
Parses the data provided via anInputStreaminto aIrishSentenceBankDocument.- Parameters:
is- A valid, openInputStreamready for use.- Returns:
- A valid
IrishSentenceBankDocument. - Throws:
IOException- Thrown if IO errors occurred.
-