Our goal is to develop a prototype that uses AI to identify specific quality indicators within news stories within the newsroom environment. This AI Monitor will be tailored specifically for newsroom editors, helping them to identify issues such as a lack of sources, an excess of adjectives, or discrepancies in information that can be addressed using online tools such as Fact-Checker Explorer.
Create virtual environment, install the package as a library, and download the required Spanish language model for spaCy:
uv sync
uv pip install -e .
uv run spacy download es_core_news_smInstall the package and download the required Spanish language model for spaCy:
!pip install .
!python -m spacy download es_core_news_smExecute the main script to run the project.
python main.pyAlternatively, you can try it in a Live Python Terminal, as follows:
from trustmonitor.nlp import NLP
nlp = NLP('es', 'spacy')
doc = nlp.analyze("El presidente de la Cámara de Propietarios de la República Argentina aseguró...")
entities = nlp.extract_entities(doc)
entities_count = nlp.count_entities(doc)
adjectives = nlp.extract_adjectives(doc)
adjective_count = nlp.count_adjectives(doc)
adjective_type_counts = nlp.count_adjective_types(doc)
entity_type_counts = nlp.count_entity_types(doc)
entity_sentiments = nlp.extract_entity_sentiments(doc)/trustmonitor
|-- nlp.py
|-- import_utils.py
|-- articles.py
/data
|-- docs
|-- manual
|-- raw
|-- main.py
|-- requirements.txt
|-- setup.py
|-- README.md