I'm looking for a java driven solution to a requirement for analysing sentences to log whether a key word was used positively or negatively.
Ie The key word might be 'cabbages' and the sentence:-
'I like cabbages but not peas'
And I'd like a java text analyser of some kind to log this as positive. Can the lucene (Hibernate-Search) libraries be utilized to for this?
Any thoughts?
Java provides a rich set of libraries, and its standard Java library is a very powerful that contains libraries such as java. lang, java. util, and java. math, etc.
Java can be applied to a wide range of processes in machine learning and data science, including data export and import, data cleaning, deep learning, statistical analysis, NLP, ML, and data visualization.
Natural Language Processing (NLP) allows you to take any sentence and identify patterns, special names, company names, and more. The second edition of Natural Language Processing with Java teaches you how to perform language analysis with the help of Java libraries, while constantly gaining insights from the outcomes.
In Java code, the Stanford CoreNLP sentiment classifier is used as follows. To start, you build up a text processing pipeline by adding the annotators required to perform sentiment analysis, such as tokenize , ssplit , parse , and sentiment .
You're looking for "sentiment analysis". One possibility is LingPipe, who kindly link to their competitors also. Jeff Dalton also has a great list of natural language processing tools in his blog.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With