Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/pritilata95/simplefactchecker

A corpus-driven fact-checking application to check the truth value of a given fact.
https://github.com/pritilata95/simplefactchecker

corenlp fact-checking java-8 java-application mediawiki-api natural-language-processing

Last synced: 3 days ago
JSON representation

A corpus-driven fact-checking application to check the truth value of a given fact.

Awesome Lists containing this project

README

        

# Simple Fact Checker

Goal : Build a corpus-driven fact-checking engine, which returns a veracity value between 0 (fact is false) and +1 (fact is true) given a fact from Wikipedia.

While running this program, be sure to include the provided jar files in classpath.

If you want, you can change training and test filenames in FactChecker.java

The program is designed to run with JDK 8 and above.

# Role of each file
* Main.java is the entry point of the program
* FactChecker.java makes triplet and handles the other classes
* FactSearcher.java takes a triplet, performs web search for the given subject and returns matching predicate for the provided object, if available.
* FactClassifier.java assigns a truth-value to a fact by matching provided predicate and web predicate.

# Steps to Execute
* For Windows Users -
1. > git clone https://github.com/Pritilata95/SimpleFactChecker
2. > cd SimpleFactChecker
3. > javac -cp "./lib/\*;./src/\*" -d bin ./src/\*.java
4. > java -cp "./lib/\*;./bin" Main

* For Linux Users -
1. $ git clone https://github.com/Pritilata95/SimpleFactChecker
2. $ cd SimpleFactChecker
3. $ javac -cp "./lib/\*:./src/\*" -d bin ./src/\*.java
4. $ java -cp "./lib/\*:./bin" Main

# Diagrams


Class Diagram of SimpleFactChecker application
Sequence Diagram of SimpleFactChecker application