GithubHelp home page GithubHelp logo

genezc / ote-mtl Goto Github PK

View Code? Open in Web Editor NEW
50.0 3.0 17.0 1.02 MB

Code and dataset for EMNLP 2020 paper titled "A Multi-task Learning Framework for Opinion Triplet Extraction"

Python 100.00%
aspect sentiment opinion

ote-mtl's Introduction

OTE-MTL

OTE-MTL - Multi-Task Learning for Opinion Triplet Extraction

Updates

  • Feb. 20th, 2021. As is pointed out in our paper, we have noted that datav1 used in https://arxiv.org/abs/1911.01616 is rather incomplete and have corrected their mistakes. That is, the data used for our experiments is similar to datav2. However, as is requested by some users and in case of any inconsistencies between our data and datav2, we decide to support the test of our model on datav2. You could just run our model on datav2 with just an additional argument --v2.

Requirements

  • Python 3.6
  • PyTorch 1.0.0
  • numpy 1.15.4

Usage

  • Download pretrained GloVe embeddings with this link and extract glove.840B.300d.txt into glove/.
  • Train with command, optional arguments could be found in train.py, --v2 denotes whether test on datav2
python train.py --model mtl --dataset rest14 [--v2]

Task

An overview of the task opinion triplet extraction (OTE) is given below

model

OTE is solving the same task proposed in https://arxiv.org/abs/1911.01616. While our work focuses on extracting (aspect term, opinion term, sentiment) opinion triplets (OTs), they extract (aspect term-sentiment pair, opinion term)s. Owing to the minor difference lying in formulations, two drawbacks in the latter formulation are presented: (i) sentiments are determined without accessing opinion terms, (ii) conflicting opinions expressed towards an aspect cannot be predicted.

Citation

If you use the code in your paper, please kindly star this repo and cite our paper

@inproceedings{zhang-etal-2020-multi,
    title = "A Multi-task Learning Framework for Opinion Triplet Extraction",
    author = "Zhang, Chen  and
      Li, Qiuchi  and
      Song, Dawei  and
      Wang, Benyou",
    booktitle = "Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing: Findings",
    month = nov,
    year = "2020",
    address = "Online",
    publisher = "Association for Computational Linguistics",
    url = "https://www.aclweb.org/anthology/2020.findings-emnlp.72",
    pages = "819--828",
}

Contact

  • For any issues or suggestions about this work, don't hesitate to create an issue or directly contact me via [email protected] !

ote-mtl's People

Contributors

genezc 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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

ote-mtl's Issues

code error

hello, in the 'tag_utils' file, line 74, should found_beg have a value of 0?

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.