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
Modifier and TypeClassDescriptionstatic class
static class
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
static IrishSentenceBankDocument
parse
(InputStream is) Parses the data provided via anInputStream
into aIrishSentenceBankDocument
.
-
Constructor Details
-
IrishSentenceBankDocument
public IrishSentenceBankDocument()Initializes an emptyIrishSentenceBankDocument
.
-
-
Method Details
-
add
- Parameters:
sent
- AIrishSentenceBankDocument.IrishSentenceBankSentence
to be added.
-
getSentences
- Returns:
- Retrieves an unmodifiable list of all
sentences
.
-
parse
Parses the data provided via anInputStream
into aIrishSentenceBankDocument
.- Parameters:
is
- A valid, openInputStream
ready for use.- Returns:
- A valid
IrishSentenceBankDocument
. - Throws:
IOException
- Thrown if IO errors occurred.
-