To create a virtual environment with all the needed requirements to run the demo, I have provided a yaml file to import the environment using Conda. The file is located at:
requirements/anlp.yaml
git clone https://github.com/debryu/EULA-Embeddings_Utilizer_Legal_Assistant.git
Download all_datasets.zip and extract it.
The demo can be executing by running the python script located at:
haystack/5_query.py
all_datasets_folder_path
variable at line 30 to the path where you extracted the dataset.
After running, it will output the link of the most similar case, the location where it was issued and the position in the ranking. By pressing ENTER it possible to view all the documents that have been retrieved.