delulu-duck

joined 1 year ago
 

Hello i m using iNLTK ( Natural Language Toolkit for Indic Languag ) for my nlp mini project "paraphrase detection in hindi text" but I m getting this code error if anyone can help me solving it would be great. Thank you in advance.

here is the code for the error section.

from inltk.inltk import get_sentence_similarityfrom sklearn.metrics.pairwise import cosine_similarityget_sentence_similarity(text, 3, 'hi', cmp = cosine_similarity)

I googled there are solution saying to install pytorch version 1.3.0 but when I try to install it's saying not available.

!pip install torch==1.3.1+cpu -f https://download.pytorch.org/whl/torch_stable.html.

error :

Looking in links: https://download.pytorch.org/whl/torch_stable.html. ERROR: Could not find a version that satisfies the requirement torch==1.3.1+cpu (from versions: 1.11.0, 1.12.0, 1.12.1, 1.13.0, 1.13.1, 2.0.0, 2.0.1, 2.1.0) ERROR: No matching distribution found for torch==1.3.1+cpu