sourcecode/main.py (5 lines of code) (raw):
#!/usr/bin/env python3
"""Invoke Community Notes scoring and user contribution algorithms.
Example Usage:
# If there is only one rating file, pass the file path to the --ratings flag.
python main.py \
--enrollment data/userEnrollment-00000.tsv \
--notes data/notes-00000.tsv \
--ratings data/ratings-00000.tsv \
--status data/noteStatusHistory-00000.tsv \
--outdir data
# If there are multiple rating files, move them to a directory,
# and pass the directory path to the --ratings flag.
python main.py \
--enrollment data/userEnrollment-00000.tsv \
--notes data/notes-00000.tsv \
--ratings data/ratings \
--status data/noteStatusHistory-00000.tsv \
--outdir data
"""
import logging
from scoring.runner import main
if __name__ == "__main__":
logging.basicConfig(level=logging.DEBUG)
main()