Skip to content
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

No module named 'text2text.text_generator' #40

Open
Shivan118 opened this issue Jul 4, 2023 · 1 comment
Open

No module named 'text2text.text_generator' #40

Shivan118 opened this issue Jul 4, 2023 · 1 comment

Comments

@Shivan118
Copy link

from text2text.text_generator import TextGenerator

ModuleNotFoundError: No module named 'text2text.text_generator'

Kindlyt help me with this error

@artitw
Copy link
Owner

artitw commented Jul 4, 2023

Looks like you are trying to use an older version, so I can think of two options:

  1. Install the older verison: pip install -qq -U text2text<=0.0.9 and use it like you are asking.
  2. Install the latest version: pip install -qq -U text2text and use it like:
import text2text as t2t
t2t.Questioner().transform(["this is a sentence"])

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants