Coder Social home page Coder Social logo

aqweteddy / leveragejustafewkeywords Goto Github PK

View Code? Open in Web Editor NEW
0.0 0.0 1.0 1.06 MB

Unofficial implementation for EMNLP2019 <Leveraging Just a Few Keywords for Fine-Grained Aspect Detection Through Weakly Supervised Co-Training>

Python 100.00%

leveragejustafewkeywords's Introduction

Hi there ๐Ÿ‘‹, this is Pin Zu Li's Github !

I'm a NLP Engineer. my works primarily on NLP, including developing large language models that integrate Taiwanese culture and addressing the challenge of fake news early detection.

Publication

Chat Vector: A Simple Approach to Equip LLMs With New Language Chat Capabilities Shih-Cheng Huang, Pin-Zu Li, Yu-Chi Hsu, Kuang-Ming Chen, Yu Tung Lin, Shih-Kai Hsiao, Richard Tzong-Han Tsai, Hung-yi Lee. We propose using a chat vector to transfer the instruction following capability from the English language LLM to the Traditional Chinese LLM without the need for any additional training.

leveragejustafewkeywords's People

Contributors

aqweteddy avatar

Watchers

 avatar  avatar

Forkers

moshimoshisama

leveragejustafewkeywords's Issues

way of the model work in train.py

As your method is like for each batch of the dataset, the teacher model would run first, then immediately apply the student model.

What we think is like we should apply the teacher model to the entire dataset first, after 1 epoch then we could apply the student model.

We would like to know your opinion about this.

Thank you.

Teacher model in model.py

In line 27-29, we changed

mask = bow.sum(1) == 0
result[mask, self.general_asp] = 1
result = torch.softmax(result, -1)

to
result = torch.softmax(result, -1)
result[mask, :] = 0
result[mask, self.general_asp] = 1

As apply softmax before or after the assign, actually makes a different

calc_z in train.py

Hi, we are a team recently working on the same paper and want to apply it to our own dataset. There is something that I want to discuss with you.

In train.py, calc_z function, line 168, we changed
bsum = r.sum(-1).view(-1, 1)
to
bsum = r.sum(0).view(1, -1)

As we think it changes the way of summation against the paper, in fact, we got better performance after changing applied to OPOSUM dataset.

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.