Giter Club home page Giter Club logo

abhilashmnair / sarcasm-detection-with-bert-and-gcn Goto Github PK

View Code? Open in Web Editor NEW
15.0 15.0 2.0 1.04 MB

A sarcasm detection model using Bidirectional Encoder Representations for Transformers (BERT) and Graph Convolutional Networks (GCN) has shown state-of-art results against conventional models and vanilla transformer-based approaches.

Home Page: https://www.sciencedirect.com/science/article/pii/S1877050922024991

License: MIT License

Python 100.00%
bert deep-learning gcn nlp sarcasm-detection transformer

sarcasm-detection-with-bert-and-gcn's Introduction



Connect with me:

LinkedIn Telegram Whatsapp Spotify Gmail

sarcasm-detection-with-bert-and-gcn's People

Stargazers

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

Watchers

 avatar  avatar

sarcasm-detection-with-bert-and-gcn's Issues

infer issue

Traceback (most recent call last):
File "C:\Users\RIS-FC3PF63\Downloads\Sarcasm-Detection-with-BERT-and-GCN-main\Sarcasm-Detection-with-BERT-and-GCN-main\infer.py", line 110, in
t_probs = inf.evaluate(raw_text)
File "C:\Users\RIS-FC3PF63\Downloads\Sarcasm-Detection-with-BERT-and-GCN-main\Sarcasm-Detection-with-BERT-and-GCN-main\infer.py", line 69, in evaluate
t_outputs = self.model(t_inputs)
File "D:\anaconda3\lib\site-packages\torch\nn\modules\module.py", line 1501, in _call_impl
return forward_call(*args, **kwargs)
File "C:\Users\RIS-FC3PF63\Downloads\Sarcasm-Detection-with-BERT-and-GCN-main\Sarcasm-Detection-with-BERT-and-GCN-main\models\bertgcn.py", line 27, in forward
text_bert_indices, bert_segments_ids, dependency_graph, affective_graph = inputs #text_indices,
ValueError: too many values to unpack (expected 4)

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.