FactCheck is an algorithm that validates facts by finding evidences on the web to approve or deny a query.
factcheck-api is a Spring RESTful web service for Factcheck which requires an object, predicate and subject to be specified in the JSON request.
A task ID - a number that identifies the request is also required.
The API returns the total score as well as proof sentences and their corresponding scores.
- Make sure that Oracle Java 1.8 (or higher) is installed (java -version). Or install it by the sudo add-apt-repository ppa:webupd8team/java && sudo apt-get update && sudo apt-get install oracle-java8-installer -y.
- Clone this repository ( git clone https://github.com/danishahmed92/factcheck-api.git )
- Add the factcheck jar as a Library. For IntelliJ IDEA users: File -> Project Structure -> Libraries -> Select New Project Library
- Run the Application.java in IntelliJ. Requests can be posted to http://localhost:8080/api/execTask/
- To perform health check: check in browser http://localhost:8080/api/default