Package opennlp.tools.formats.muc
Class MucNameContentHandler
java.lang.Object
opennlp.tools.formats.muc.SgmlParser.ContentHandler
opennlp.tools.formats.muc.MucNameContentHandler
-
Constructor Summary
ConstructorDescriptionMucNameContentHandler
(Tokenizer tokenizer, List<NameSample> storedSamples) Initializes aMucNameContentHandler
. -
Method Summary
Modifier and TypeMethodDescriptionvoid
characters
(CharSequence chars) Handles a set of characters between SGML start and end tag.void
endElement
(String name) Handles a SGML end element.void
startElement
(String name, Map<String, String> attributes) Handles a SGML start element.
-
Constructor Details
-
MucNameContentHandler
Initializes aMucNameContentHandler
.
-
-
Method Details
-
startElement
Description copied from class:SgmlParser.ContentHandler
Handles a SGML start element.- Specified by:
startElement
in classSgmlParser.ContentHandler
- Parameters:
name
- The name of the element's start tag.attributes
- The attributes supplied with the start tag. It may be empty.- Throws:
InvalidFormatException
- Thrown if parameters were invalid.
-
characters
Description copied from class:SgmlParser.ContentHandler
Handles a set of characters between SGML start and end tag.- Specified by:
characters
in classSgmlParser.ContentHandler
- Parameters:
chars
- The characters to process.
-
endElement
Description copied from class:SgmlParser.ContentHandler
Handles a SGML end element.- Specified by:
endElement
in classSgmlParser.ContentHandler
- Parameters:
name
- The name of the element's end tag.
-