Resolve issue in ML and NLP code

Closed Posted 3 years ago Paid on delivery
Closed Paid on delivery

Hello,

I have a ML model that uses a BERT classifier to classify sentences into 4 categories.

It worked fine about 2-3 months ago when I last used it

However its not working now. Could some one please resolve the issue now via teamviewer.

Error 1:

AttributeError Traceback (most recent call last)

<ipython-input-43-07009d115f5b> in <module>()

24

25 optimizer.zero_grad()

---> 26 [login to view URL]()

27 [login to view URL]()

28

AttributeError: 'str' object has no attribute 'backward'

Error 2:

<ipython-input-27-44682da2a136> in <module>()

1 s = 'Lack of access control over sensitive data may lead to the following risks' # Sentence

----> 2 predict(model, s)

<ipython-input-25-4683e5515fc2> in predict(model, sentence)

17 _, output = model(target, label)

18

---> 19 y_pred = [login to view URL](output, 1)

20

21 return classes[[login to view URL]()]

TypeError: argmax(): argument 'input' (position 1) must be Tensor, not str

Machine Learning (ML) Python

Project ID: #28926978

About the project

7 proposals Remote project Active 3 years ago

7 freelancers are bidding on average $58 for this job

schoudhary1553

Hi, Greetings! ✅ I have checked and gone through the project details and I am very skilled in it. ✅Completed Time: In project deadline We have worked on 640 + Projects. I have 6 + years of the experience in sa More

$100 USD in 2 days
(55 Reviews)
6.4
tamvannguyen

*** Python + Deep Learning Expert *** Hi, thanks for your posting. I see you've got some bugs in the existing NLP code. I'm well versed in Deep Learning, Pytorch. So I'm confident that I can help you well. Let's discus More

$50 USD in 7 days
(34 Reviews)
5.2
shish1992

hey i can Resolve issue in ML and NLP code please inbox me ......................... ...........................

$100 USD in 7 days
(18 Reviews)
4.8
Konstantin2021

Dear Vivek. Hope you are doing well under the pandemic. I am a seasoned python developer who has got neat skills and rich experience in ML & AI & DL & NLP. I have a keen eye for specifications and fixing issues is one More

$10 USD in 1 day
(0 Reviews)
0.0
Riyaz006

Hi sir, I am Riyaz ali. Data Science Enthusiast. Currently i have the experience in ML/DL. i think i can resolve your error withing 10-20 minutes. consider my bid. and give me the opportunity.

$15 USD in 1 day
(0 Reviews)
0.0