-
Notifications
You must be signed in to change notification settings - Fork 14
Open
Description
Hi,
Thank you for developing such a comprehensive resource for complexity computation. I am trying the package but ran into some errors,
Traceback (most recent call last):
File "/usr/local/bin/txtcomplexity", line 12, in <module>
textcomplexity.cli.main()
File "/usr/local/lib/python3.7/dist-packages/textcomplexity/cli.py", line 147, in main
results.extend(surface_based(tokens, args.window_size, args.all_measures))
File "/usr/local/lib/python3.7/dist-packages/textcomplexity/cli.py", line 60, in surface_based
mean, stdev, _ = surface.bootstrap(measure, tokens, window_size, strategy="spread")
File "/usr/local/lib/python3.7/dist-packages/textcomplexity/surface.py", line 478, in bootstrap
for window in windows.disjoint_windows(tokens, window_size, strategy):
File "/usr/local/lib/python3.7/dist-packages/textcomplexity/utils/windows.py", line 30, in disjoint_windows
assert window_size <= text_length
AssertionError
I used run_stanza.py to prepare the conllu file. Could you please suggest what might I do wrong?
Best
Metadata
Metadata
Assignees
Labels
No labels