Package org.apache.tika.parser.sentiment
Class SentimentAnalysisParser
java.lang.Object
org.apache.tika.parser.AbstractParser
org.apache.tika.parser.sentiment.SentimentAnalysisParser
- All Implemented Interfaces:
Serializable,Initializable,Parser
@Deprecated(since="2026-04-30")
public class SentimentAnalysisParser
extends AbstractParser
implements Initializable
Deprecated.
This version of the Apache Tika library is deprecated. Use your own version of Apache Tika.
This parser classifies documents based on the sentiment of document.
The classifier is powered by Apache OpenNLP's Maximum Entropy Classifier
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidDeprecated.getSupportedTypes(ParseContext context) Deprecated.Returns the types supportedvoidinitialize(Map<String, Param> params) Deprecated.voidparse(InputStream stream, ContentHandler handler, Metadata metadata, ParseContext context) Deprecated.Performs the parseMethods inherited from class org.apache.tika.parser.AbstractParser
parse
-
Field Details
-
DEF_MODEL
Deprecated.- See Also:
-
-
Constructor Details
-
SentimentAnalysisParser
public SentimentAnalysisParser()Deprecated.
-
-
Method Details
-
initialize
Deprecated.- Specified by:
initializein interfaceInitializable- Parameters:
params- params to use for initialization- Throws:
TikaConfigException
-
checkInitialization
Deprecated.- Specified by:
checkInitializationin interfaceInitializable- Parameters:
handler- if there is a problem and no custom initializableProblemHandler has been configured via Initializable parameters, this is called to respond.- Throws:
TikaConfigException
-
getSupportedTypes
Deprecated.Returns the types supported- Specified by:
getSupportedTypesin interfaceParser- Parameters:
context- the parse context- Returns:
- the set of types supported
-
parse
public void parse(InputStream stream, ContentHandler handler, Metadata metadata, ParseContext context) throws IOException, SAXException, TikaException Deprecated.Performs the parse- Specified by:
parsein interfaceParser- Parameters:
stream- the inputhandler- the content handlermetadata- the metadata passedcontext- the context for the parser- Throws:
IOException- if the document stream could not be readSAXException- if the SAX events could not be processedTikaException- if the document could not be parsed
-