Class NKJPTextDocument
java.lang.Object
opennlp.tools.formats.nkjp.NKJPTextDocument
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static StringHelper method to get the value of an attribute.Segmentation etc.getTexts()(package private) static NKJPTextDocumentstatic NKJPTextDocumentparse(InputStream is)
-
Field Details
-
divtypes
-
texts
-
-
Constructor Details
-
NKJPTextDocument
NKJPTextDocument() -
NKJPTextDocument
-
-
Method Details
-
parse
- Throws:
IOException
-
parse
- Throws:
IOException
-
getDivtypes
-
getTexts
-
getParagraphs
-
attrib
Helper method to get the value of an attribute.- Parameters:
n- TheNodeto be processed.attrib- The name of the attribute.required- Whether the attribute is required or not.- Returns:
- The value of the attribute, or null if not required and not present
- Throws:
IOException- Thrown if IO errors occurred.
-