Script python per estrarre entità nominate da testi in italiano
- pip 23 or later
- python 3.x
Create a Virtual Environment
python3 -m env venv
Activate it
source env/bin/activate
Install dependencies with pip:
pip install -r requirements.txt
Be aware that the large language model is about 500mb.
activate the virtual environment.
Call the script passing three parameters:
- the input csv filename
- the header of the column containing the text
- the output csv filename
- the model that sould be used: "sm" (small) or "lg" (large)
example:
python3 input.csv text_field output.csv lg