Skip to content

Documentation claims that label_mapping is an accepted input to TokenClassificationEvaluator.compute(); it is not #545

Description

@boyleconnor

This line in the documentation states that label_mapping is an accepted parameter of TokenClassificationEvaluator.compute(), when it in fact is not.

I suspect this line was absent-mindedly copied over from the TextClassificationEvaluator documentation (that class's compute() method actually does accept this parameter).

In my opinion this would be a useful feature to implement (easily allowing users to evaluate models on datasets that don't use exactly the same labels), but at the very least this line should be removed from the documentation as long as the method doesn't support this parameter.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions