planetary names pipeline
This pipeline processes planetary nomenclature to identify named entities (feature names) for a target and feature type. It can collect data, predict entities, and perform end-to-end processing (collect followed by predict).
- RabbitMQ and PostgreSQL
$ virtualenv python
$ source python/bin/activate
$ pip install -r requirements.txt
$ pip install -r dev-requirements.txt
$ vim local_config.py # edit, edit
$ ./start-celery.sh
- task_process_planetary_nomenclature: queues one feature name at a time for processing
-a, --action Action to perform (collect, identify, etc.)
-t, --target Target celestial body (e.g., Moon, Mars)
-f, --feature_type Feature type (e.g., Crater)
-n, --feature_name Feature name (e.g., Apollo)
-k, --keyword Knowledge graph keyword to add/remove/export
-c, --confidence_score (optional) Filter by minimum confidence score
-d, --days (optional) Filter by days for retrieve_identified_entities action
-s, --timestamp (optional) Specify date in YYYY-MM-DD format for identification actions
-u, --usgs_update CSV file for USGS data update
-o, --output_file (optional) Specify file name for data export
-l, --label (optional) Specify label of the knowledge graph keywords to export (e.g, planetary or unknown)
python run.py -a collect -t Mercury -f Crater
python run.py -a identify -t Mercury -f Crater
python run.py -a end_to_end -t Mercury -f Crater
python run.py -a identify -t Mars -f Crater -s 2023-01-01
python run.py -a retrieve_identified_entities -c 0.8 -d 30
python run.py -a add_keyword_to_knowledge_graph -k basin -t Moon -f Apollo
python run.py -a remove_keyword_from_knowledge_graph -k fig -t Moon -f Apollo
python run.py -a remove_the_most_recent -t Mars -f Avan
python run.py -a remove_all_but_last -t Mars -f Avan
python run.py -a retrieve_knowledge_graph_keywords -t Mars -f Crater -l positive -o keywords_export.csv
python run.py -a update_database_with_usgs_entities -u updated_usgs_terms.csv
python run.py -a collect -t Mars -n Amenthes
python run.py -a retrieve_identified_entities -t Mars -n Amenthes -c 0.75
python run.py -a retrieve_knowledge_graph_keywords -t Mars -n Amenthes -l planetary## Maintainers
Golnaz