TINGA
Tinga is an scala library for Natural Language Processing (NLP). Also, it integrates some Machine Learning (ML) libraries. Furthermore, some applications of NLP and ML like Sentiment Polarity detections (Opinion Mining) are integrated as modules of tinga. Currently we have developed three modules:
Natural Language Processing module have some basi tools for NLP typical tasks:
Machine learning classic task are classification and clusterization. At this point, we only have integrated libSVM (Support Vector Machine library):
Sentiment analysis is a library for opinion mining (also known as sentiment analysis) of spanish comments (until this version, later version will detect on other languages). It analizes a comment, tweet, post or sentence and determines sentiment polarity such as negative, positive or neutral according to the vocabulary used. With this library you can:
Example (spanish text):
Me encanta el nuevo iphone 6. Lo único malo es el precio.
Me encanta el nuevo iphone 6 (positive). Lo único malo es el precio (negative). Overall Sentiment (neutral). Keywords in first sentence "nuevo iphone", while in second sentence is "precio". Therefore, positive sentiment for iphone negative for price.
0.1.1
:)
scala> import tinga.sentiment._
scala> val s = new Sentiment("es")
scala> s.sentiment("Me encanta el nuevo iphone. Lo malo es el precio")
res0: scala.collection.mutable.Buffer[(String, Double, String, Int)] = ArrayBuffer((Me encanta el nuevo iphone .,1.0,sentiment,1), (" Lo malo es el precio .",-1.0,sentiment,1))
scala>
scala> s.globalParagraphScore(res0)
res1: (String, Double, String, Int) = (Me encanta el nuevp iphone . Lo malo es el precio .,0.0,sentiment,1)
scala>
scala> s.wordCloud("Me encanta el nuevo iphone. Lo malo es el precio")
res2: scala.collection.mutable.Buffer[String] = ArrayBuffer(nuevo iphone, precio)
$ git clone tinga
Currently the unique dependency is "libsvm" and is unmanaged and included in source directory
Want to contribute? Great!
MIT
Free Software, Hell Yeah!