Skip to content

Installing libraries #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 19 additions & 1 deletion Multiple_Choice_Question_generator.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,24 @@
"6. Now we got the question with the set of correct answer and also the wrong answers, so we will display the result."
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"#### Installing required libraries"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"!pip install sense2vec sentence_transformers textwrap3 flashtext strsimpy\n",
"!pip install git+https://github.com/boudinfl/pke.git\n",
"!python -m spacy download en_core_web_sm"
]
},
{
"cell_type": "markdown",
"metadata": {},
Expand Down Expand Up @@ -96,7 +114,7 @@
"from collections import OrderedDict\n",
"from sklearn.metrics.pairwise import cosine_similarity\n",
"nltk.download('omw-1.4')\n",
"from similarity.normalized_levenshtein import NormalizedLevenshtein\n",
"from strsimpy.normalized_levenshtein import NormalizedLevenshtein\n",
"import pickle\n",
"import time\n",
"import os "
Expand Down