8000 Incorrect info in TextClassificationJsonReader docstring · Issue #2619 · allenai/allennlp · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
This repository was archived by the owner on Dec 16, 2022. It is now read-only.
This repository was archived by the owner on Dec 16, 2022. It is now read-only.
Incorrect info in TextClassificationJsonReader docstring #2619
Closed
@nelson-liu

Description

@nelson-liu

The docstring for the TextClassificationJsonReader says that it expects json instances with "tokens" and "category" keys.

However, it looks like it actually expects "text" and "labels" (see https://github.com/allenai/allennlp/blob/master/allennlp/data/dataset_readers/text_classification_json.py#L69 )

Would be good to fix the doc

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0