this-word-does-not-exist icon indicating copy to clipboard operation
this-word-does-not-exist copied to clipboard

Type Error

Open niklassoeder opened this issue 3 years ago • 5 comments

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

niklassoeder avatar Sep 22 '21 19:09 niklassoeder

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

turtlesoupy avatar Oct 02 '21 22:10 turtlesoupy

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

niklassoeder avatar Oct 19 '21 07:10 niklassoeder

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

gerbill avatar Oct 27 '21 10:10 gerbill

Same issue here, python 3.6

zirkonit avatar Oct 30 '21 18:10 zirkonit

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

zirkonit avatar Oct 31 '21 21:10 zirkonit