Skip to content

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

@fishfree

Description

@fishfree

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)".

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions