Custom implementation of TF-Hub's Universal Encoder to perform semantic searches across compendium of plant related PDFs.
Run the following command on your first installation of spacy:
!python -m spacy download en_core_web_md #you will need to install this on first load
To run the script, run the following command:
python3 sem_search.py --pdf_dir="/Users/singhcpt/dev/semantic_analysis/test_compendium" --search_string="What should I do if my tomato has late blight?" --num_results=10