Skip to content

Commit

Permalink
updated nlg_metricverse_demo.ipynb
Browse files Browse the repository at this point in the history
  • Loading branch information
ValentinaPieri committed Aug 2, 2023
1 parent 26cb544 commit baf8927
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions notebooks/nlg_metricverse_demo.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,27 @@
"**NOTE:** to be able to use several metrics (e.g., SacreBLEU, BERTScore, COMET, BLEURT), you need to install the related package(s). When you try to use a metric with an implementation based on external packages, NLG Metricverse will throw an exception indicating the installation need for these packages."
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"#create virtual environment\n",
"python -m venv nlgmetricverse\\env\\'name_metric'\n",
"\n",
"#activate the virtual environment on Command Prompt\n",
"nlgmetricverse\\env\\'name_metric'\\Scripts\\activate.bat\n",
"\n",
"#or else on powershell\n",
"nlgmetricverse\\env\\'name_metric'\\Scripts\\activate.ps1\n",
"\n",
"#install all the requirements\n",
"!pip install -r ci_requirements.txt\n",
"#if present, install the specific requirements for the metric\n",
"!pip install -r nlgmetricverse\\env\\'name_metric'\\requirements.txt"
]
},
{
"cell_type": "code",
"execution_count": null,
Expand Down

0 comments on commit baf8927

Please sign in to comment.