this post was submitted on 28 Oct 2023
1 points (100.0% liked)

Machine Learning

1 readers
1 users here now

Community Rules:

founded 1 year ago
MODERATORS
 

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

top 3 comments
sorted by: hot top controversial new old
[–] Gaurav-07@alien.top 1 points 1 year ago

Install a different Pytorch version then...

[–] qalis@alien.top 1 points 1 year ago

I encourage you to urgently read subreddit rules. Reported.

[–] SnooHesitations8849@alien.top 1 points 1 year ago

Lower the python veréionto 3.5/3.6 then install pytorch 1.3.1