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

Something weird with Inferencer for Text Pair Classification? #722

@rodrigoheck

Description

@rodrigoheck

Describe the bug
I am training a model for aspect-based sentiment analysis (trying to extract the sentiment of specific aspects of the text). To achieve this goal, I am using the Text-Pair Classification method of FARM. The model is training fine, but when I try to apply inference, I get wrong and static result independent of my text_b input. This suggests to me that the inference is not using 'text_b' correctly.

Error message
Here there are some examples:
Captura de Tela 2021-02-22 às 22 35 25
Captura de Tela 2021-02-22 às 22 48 49
Captura de Tela 2021-02-22 às 22 35 38

Expected behavior
If not outputting the correct label, the final probability should at least be somewhat sensitive to what I input as "text_b".

Additional context
I tested if the training was considering this a classification task instead of a text-pair classification task. I substituted TextPairClassificationProcessor for TextClassificationProcessor and, sure enough, the accuracy decreased substantially. So it is not like "text_b" is being ignored on training time.

System:

  • OS: Google Colab
  • GPU/CPU: K80
  • FARM version: 0.7.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions