A RESTFul API for Sentiment Analysis in Spanish.
https://twittersentimentanalysis.github.io/API-Sentiment-Analysis/javadoc/index.html
http://gessi-sw.essi.upc.edu:8080/sentiment-analysis-api/swagger-ui.html
-
Clone this project to a local folder and go to root folder
git clone https://github.com/twittersentimentanalysis/API-Sentiment-Analysis.git -
Build the Spring Boot project with Maven
mvn clean install -
Run the project
mvn spring-boot:run -
Go to http://localhost:8080/swagger-ui.html and test the API
-
Clone this project to a local folder and go to root folder
git clone https://github.com/twittersentimentanalysis/API-Sentiment-Analysis.git -
Build the Spring Boot project with Maven to generate a WAR file
mvn clean package -
Run Tomcat server (you can download it here)
-
Load generated WAR file into section
Deploy > WAR file to deployand click onDeployBy default generated WAR file is saved on target folder in the root project folder
-
Go to http://localhost:8080/sentiment-analysis-api/swagger-ui.html and test the API
**Note: File src/main/resources/config.properties can be modified at anytime to point to localhost or gessi endpoint.
http://gessi-sw.essi.upc.edu:8080/sentiment-analysis-api/
translator?translator=Microsoft
- BERT:
emotion?tool=BERT - BETO:
emotion?tool=BETO - SVC:
emotion?tool=SVC - ParallelDots:
emotion?tool=ParallelDots
docker build -t api_sentiment_analyisis:latest .docker run -d --name API_Sentiment_Analyisis -p 3005:3005 api_sentiment_analyisis:latest