Skip to content
This repository was archived by the owner on Apr 19, 2026. It is now read-only.
This repository was archived by the owner on Apr 19, 2026. It is now read-only.

Metrics for sequence tagging tasks dependant on the max_seq_length parameter #90

Description

@codedecde

Hi all
It seems like for sequence tagging tasks like WikiANN, the metrics are computed on truncated sequences (upto max sequence length). A consequence of that would be that for the same model, the metrics would change with changing max_seq_len in a way that may not be indicative of model quality (eg: by changing max_seq_len to 256, for the same exact model, we might see different results).

One potential fix would be for test eval to always be upto the sequence length supported by the model (eg: 512 for mBERT / XLM-Roberta); and for documents with larger sequences, might consider predictions for all other tokens as "O" (or use a windowed prediction mechanism, but that might be too involved).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    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