Texttomos is an Android library for sentiment analysis of Indonesian language text using the Naive Bayes algorithm. This library aims to help developers automatically analyze text sentiment in the Indonesian language, whether for mobile applications or other projects.
- Sentiment Analysis: Classifies text into positive, negative, or neutral sentiment categories.
- Indonesian Language: Specifically designed for sentiment analysis in Indonesian.
- Naive Bayes Algorithm: Uses the Naive Bayes method for sentiment classification.
To use this library in your Android project, add the following dependency to your build.gradle:
dependencies {
implementation 'id.dfroxs.texttomos:xxx'
}Note: This version is still in development, so some features may change in future updates.
Once the dependency is added, you can immediately use the library to perform sentiment analysis.
// Import the library
import id.dfroxs.texttomosNote: This version is still in development, so some features may change in future updates.
The library will return the sentiment result as a string indicating the sentiment category:
positivenegativeneutral
If you’d like to contribute to this project, here are the steps to follow:
- Fork this repository.
- Create a branch (
git checkout -b feature/new-feature). - Make changes and commit them (
git commit -am 'Add new feature'). - Push to the branch (
git push origin feature/new-feature). - Create a Pull Request.
This project is licensed under the MIT License.