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

Type Error #41

Open
niklassoeder opened this issue Sep 22, 2021 · 5 comments
Open

Type Error #41

niklassoeder opened this issue Sep 22, 2021 · 5 comments

Comments

@niklassoeder
Copy link

niklassoeder commented Sep 22, 2021

Hey there, first of all: great work. I am getting the following error when running the sample code. Would someone be able to give a hint where i am doing wrong?

Best

0%| | 0/1 [00:00<?, ?it/s]Traceback (most recent call last): File ".../main.py", line 12, in <module> print(word_generator.generate_word()) File "...\title_maker_pro\word_generator.py", line 72, in generate_word use_custom_generate=True, File "...\title_maker_pro\datasets.py", line 638, in generate_words example_match_pos_pipeline, l_example, start_title_idx, len(t_rstrip) File "...\title_maker_pro\datasets.py", line 346, in approx_pos m = start_end_re.match(word.misc) TypeError: expected string or bytes-like object

@turtlesoupy
Copy link
Owner

Hello there -- what version of python are you using here? This looks like it might be related to an older version

@niklassoeder
Copy link
Author

Hey, thanks for your reply. It runs on python 3.7

@gerbill
Copy link

gerbill commented Oct 27, 2021

@niklassoeder did you have any luck resolving this?
Having the same issue.
using Python 3.9.7

@zirkonit
Copy link

Same issue here, python 3.6

@zirkonit
Copy link

@niklassoeder @gerbill Fixed it by fixing Stanza version to 1.0.0 (I also have transformers fixed to 2.8.0)

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

4 participants