Giter VIP home page Giter VIP logo

ronaldseoh / atsc_prompts Goto Github PK

View Code? Open in Web Editor NEW
36.0 5.0 4.0 105.48 MB

Codes for the experiments in our EMNLP 2021 paper "Open Aspect Target Sentiment Classification with Natural Language Prompts"

Home Page: https://link.iamblogger.net/atscprompts-paper

License: Apache License 2.0

Python 2.40% Jupyter Notebook 97.60%
atsc aspect-based-sentiment-analysis semeval-2014-dataset prompts natural-language-prompts language-models nli natural-language-inference lm few-shot-learning

atsc_prompts's People

Contributors

ibirle avatar mrinaltak avatar ronaldseoh avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar  avatar

atsc_prompts's Issues

Yelp Review Dataset for PLM domain adaptation

Hello I am really interested in your paper and especially thank you for opening your code for replication.
I was trying to study your method and in the process, I was stuck in further pre-training BERT with Yelp Review dataset.

At your paper, it was said that you extracted review dataset related to restaurant, and I think it is the "restaurantIDs.txt" if I am right. However, I cannot find the ID text file in your repository, so can I know the source or the method you extracted restaurant IDs??

Thank you for your work!
Best regards,
kyuri.

I got the error info about unique in `_generate_examples`

the error info is:

FAILURE TO GENERATE DATASET !
Found duplicate Key: 0
Keys should be unique and deterministic in nature

I see this code:

            if len(aspect_term_sentiment) > 0:
                for ats in aspect_term_sentiment:
                    yield id_, {
                        "text": sentence_text,
                        "aspect": ats["aspect"],
                        "sentiment": ats["sentiment"]
                    }

In my view, for every aspect in a text, the id_ will must be duplicate, isn't it ?

zero-shot does not work.

,I can't find path = '../progress/lm_further_pretraining_bert_amazon_electronics_bseoh_2021-03-20--13_28_15/results/checkpoint-2360776'.

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.