Git Product home page Git Product logo

mole-stance's People

Contributors

mhardalov avatar rn-v avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

mole-stance's Issues

AttributeError: 'RobertaConfig' object has no attribute 'task2labels'

I am executing the following command with the necessary parameters:
python3.8 src/stancedetection/models/trainer.py
For now, I am just using 3 datasets with a very small number of synthetic examples, just to make sure that the code is working.
However, I am getting the following error:

File "src/stancedetection/models/trainer.py", line 903, in <module>
    main()
  File "src/stancedetection/models/trainer.py", line 822, in main
    model = load_model_from_pretrained(
  File "src/stancedetection/models/trainer.py", line 291, in load_model_from_pretrained
    model = model_cls.from_pretrained(model_name_or_path, **from_pretrained_kwargs)
  File "venv/lib/python3.8/site-packages/transformers/modeling_utils.py", line 947, in from_pretrained
    model = cls(config, *model_args, **model_kwargs)
  File "/scratch/rrs99/mole-stance/src/stancedetection/models/nn.py", line 147, in __init__
    task2labels=config.task2labels,
AttributeError: 'RobertaConfig' object has no attribute 'task2labels'

Explanation of the test_prediction.csv

Hi,
Thanks for sharing the code. I have done a small-scale experiment to make sure that the code is working on my end. I followed the instruction mentioned under "Label Embedding" in the readme.txt. I used the following setting:

DATASETS=(arc fnc ibmcs)
TARGET=arc

In the generated test_predictions.csv, I see lines like the following:

14,"[0.4692992568016052, 0.11499807983636856, 0.10301849246025085, 0.07154946774244308, 0.2411346733570099]",0,0,fnc1_agree,14,arc,arc__disagree

Since I set the target dataset to be the arc dataset, I expected the predicted labels to be also from the arc dataset (here, it's fnc1_agree). Can you kindly explain this? Also, I checked the confusion matrix, it seems there are rows corresponding to labels from the fnc and ibmcs datasets, but not from the arc dataset. Can you also kindly explain this?

In the generated test_metric.json, I see a very low accuracy score. I expected that, whenever the "agree" label is predicted (same goes for other labels too), no matter whether it is fnc1_agree or arc_agree, it will be treated as a correct prediction because they both belong to POSITIVE _LABELS. However, I don't think that's how the accuracy score is being computed. Can you kindly clarify this part too?

Inference on unseen data

Can this framework be used to detect stance in unseen and unlabelled custom datasets given a hypothesis and a premise?

Code and data are not available

The "Cross-Domain Label-Adaptive Stance Detection" is a great paper.
When do you plan to make the code and data available?

Format of Dataset

Hi, can you please release the datasets in json format or provide code for the same?

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.