Git Product home page Git Product logo

Comments (3)

coetaur0 avatar coetaur0 commented on July 29, 2024

Hi, what task did you train ESIM on ? The model is designed for natural language inference specifically, and it might not be appropriate for the task you're trying to solve, depending on what it is. Your issue might also be with the format of the data you fed to the model. It has to follow the same format as the SNLI and MNLI data sets.

from esim.

14H034160212 avatar 14H034160212 commented on July 29, 2024

Hi Aurelien, many thanks for your feedback. The task I am doing is a natural language inference binary classification task. The input feature includes the context (facts + rules) and a question. The output is true/false. I can use RoBERTa, BERT to train/dev/test and get a high test accuracy above 90%. But it is 50% test accuracy by using ESIM. So it is quite weird for me. Here is the dataset format.

##Input feature (Context + Question)
##Context (Facts + Rules):
##Facts:
Red things are big. Anne is big. Erin is green. Anne is red. All red things are round. 
##Rules:
If something is green and cold then it is furry. Anne is green. Anne is cold. Erin is round. If something is rough then it is furry. If something is cold then it is furry. Anne is rough. Anne is furry. All furry things are round. Erin is furry. Erin is cold. If something is round then it is rough. All rough things are cold.

##Question:
'Anne is red.'

##Output (1/0) True: 1, False: 0
##Correct label: 
1 
##Predict label:
1

from esim.

coetaur0 avatar coetaur0 commented on July 29, 2024

Sorry for the (very) late reply. You'll need to modify the training and testing scripts quite significantly if you want to process data in a different format than the SNLI or MNLI data sets. In particular, you'll need to rewrite the preprocessing steps to format your data so it is readable by the model. You also need to change the data's labeldict to only contain two output labels instead of three, if your classification task is binary.

from esim.

Related Issues (19)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.