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

TypeError: ConllParser.__init__() got an unexpected keyword argument 'is_tokenized' when using command parse-as-conll #30

Open
fishfree opened this issue Jan 13, 2024 · 1 comment

Comments

@fishfree
Copy link

Whether I use -t argument or not.

(spacy) mememe@ubuntugpu:~$ parse-as-conll en_core_web_sm spacy --input_str "I like cookies. What about you?" -t --include_headers
Traceback (most recent call last):
  File "/mnt/data/mememe/.local/bin/parse-as-conll", line 8, in <module>
    sys.exit(main())
  File "/mnt/data/mememe/.local/lib/python3.10/site-packages/spacy_conll/cli/parse.py", line 175, in main
    parse(cargs)
  File "/mnt/data/mememe/.local/lib/python3.10/site-packages/spacy_conll/cli/parse.py", line 23, in parse
    parser = ConllParser(nlp, is_tokenized=args.is_tokenized)
TypeError: ConllParser.__init__() got an unexpected keyword argument 'is_tokenized'

I have to change line 23 to "parser = ConllParser(nlp)".

@kleag
Copy link

kleag commented May 4, 2024

I confirm. I encountered the same problem.

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