Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/pritilata95/simplefactchecker
- Owner: Pritilata95
- License: mit
- Created: 2020-12-17T21:45:28.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2021-02-05T11:57:42.000Z (almost 4 years ago)
- Last Synced: 2024-12-19T05:43:42.524Z (3 days ago)
- Topics: corenlp, fact-checking, java-8, java-application, mediawiki-api, natural-language-processing
- Language: Java
- Homepage:
- Size: 2.91 MB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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