Skip to content
/ alpaca Public
forked from lvap/alpaca

Content-focused webpage credibility evaluation

Notifications You must be signed in to change notification settings

linatal/alpaca

 
 

Repository files navigation

ALPACA

Content-focused webpage credibility evaluation

Installation

Requirements: Python 3.9, pip, and optionally Jupyter Notebook to view the data analysis notebooks.

Install the necessary packages:

>pip install -r requirements.txt

Then in a Python shell:

>>>import language_tool_python
>>>language_tool_python.LanguageTool('en-US')
>>>import nltk
>>>nltk.download('punkt')

If you want to run the code on branch signal-implementation-analysis, you will need fastText:

>pip install fasttext==0.9.2

which might require you to to install Microsoft Visual C++ via the Microsoft C++ Build Tools.

Usage

Run main.py to start the program, then enter any http(s) webpage URL to evaluate its credibility. Returned credibility score is between 0 = low credibility and 1 = high credibility.

Logging, and export of credibility signal statistics to a .csv file can be configured in main.py. To evaluate all URLs in a list, use evaluate_datasets() in the same file.

System analysis

The performance analysis data and results for the system and the signal sub-scores are in the analysis folder.

The code for and analysis of signal measurements and different signal implementations are on the branch signal-implementation-analysis.

Acknowledgements

Readability module by andreasvc https://github.com/andreasvc/readability/ included due to dependency issues

Clickbait detector by Alison Salerno https://github.com/AlisonSalerno/clickbait_detector

Emotion intensity lexicon by Saif M. Mohammad https://saifmohammad.com/WebPages/AffectIntensity.htm

Profanity lexicon compiled from

About

Content-focused webpage credibility evaluation

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Jupyter Notebook 71.3%
  • Python 28.7%