Files
drstats/Makefile
T
retoor 7f19248052 chore: remove deprecated sync_excempt target and switch export_stats to dr.stats
- Delete the sync_excempt Makefile target that was stubbed with a timeout warning
- Change export_stats to call dr.stats instead of dr.stats_all
- Remove extraneous blank lines in Makefile for cleaner formatting
2024-11-26 08:28:21 +00:00

45 lines
1.2 KiB
Makefile

all: ensure_env build sync export_dataset export_stats merge_images export_statistics export_mentions
ensure_env:
-@python3 -m venv venv
build:
./venv/bin/python -m pip install build
./venv/bin/python -m build .
./venv/bin/python -m pip install -e .
sync:
./venv/bin/dr.sync
clean:
-@rm -r export
mkdir -p export
export_stats:
@echo "Make sure you have ran 'make sync' first. Results will be in ./export/"
@echo "Exporting statisticts."
./venv/bin/dr.stats
export_dataset:
@echo "Make sure you have ran 'make sync' first."
@echo "Exporting dataset to be used for LLM embedding. Result will be ./export/0_dataset.txt"
./venv/bin/dr.dataset > export/0_dataset.txt
export_statistics:
@echo "Exporting statisticts. Result will be ./export/2_statistics.txt"
cat export/dataset.txt | grep "Statistics: "
cat export/dataset.txt | grep "Statistics: " > export/2_statistics.txt
export_mentions:
@echo "Exporting mentions. Result will be ./export/3_mentions.txt"
cat export/dataset.txt | grep "times ment"
cat export/dataset.txt | grep "times ment" > export/3_mentions.txt
merge_images:
@echo "Merging images to one big image. Result will be ./export/1_graphs_compliation.png."
./venv/bin/python merge_images.py