qg not working
Hi, I last used T2T 5 May 2021, today I want to produce more work and it wasn't working. I then downloaded the latest but it too isn't working . Please help. Thanks in advance for quick and positive response
Take a look at the latest documentation in the README to update your code. If you still prefer the old API you can install previous versions according to the date you prefer.
hi please help with the error I get, refer image. thanks in advance.

Looks like you are using the old API. Below are two options. I would recommend option 2 if possible.
- Install older version, e.g.
pip install text2text==0.1.0and keep your code as is. OR - Use new API, e.g.
pip install -U text2textand follow the code below.
from text2text import Handler
Handler([
bio_str,
bio_str,
bio_str,
bio_str,
bio_str,
"I will go to school today to take my math exam.",
"I will go to school today to take my math exam.",
"Tomorrow is my cousin's birthday. He will turn 24 years old.",
notre_dame_str,
bacteria_str,
bacteria_str,
bacteria_str,
"I will go to school today to take my math exam. [SEP] school",
"I will go to school today to take my math exam. [SEP] exam",
"I will go to school today to take my math exam. [SEP] math",
], src_lang='en').question()
What am I doing wrong?
Looks like a previous cell assigning the value for the variable bio_str has not been executed. Try running that, or just replace that line with your own text.
Could you pleas provide an example screen shot of what you mean. I don't know how to code I'm learning as go. Thanks again
No worries. Copy and paste the example below and adapt it to your needs. Let us know if it works, or if you get another error.
from text2text import Handler
Handler([
"I will go to school today to take my math exam.",
"I will go to school today to take my math exam.",
"Tomorrow is my cousin's birthday. He will turn 24 years old.",
], src_lang='en').question()
Working, Thank you so much! You're the best!