Giter Site home page Giter Site logo

dpfn's Introduction

Dual-Perspective Fusion Network for Aspect-based Multimodal Sentiment Analysis

Overview

Thank you for visiting this repository. This project proposes a Dual-Perspective Fusion Network(DPFN) to address aspect-based multimodal sentiment analysis tasks。paper

The methodological framework of the project is as follows:

framework

Processing data

1、The twitter dataset is placed in the directory data, and the contents of each directory are as follows::

data/twitter2015: Text data from the twitter2015 dataset
data/twitter2017: Text data from the twitter2017 dataset
data/twitter2015_images: Image data from the twitter2015 dataset
data/twitter2017_images: Image data from the twitter2017 dataset

2、The image feature data extracted using ViT is stored in the directory data/imgDealFile, and the command python img_deal_by_vit.py is executed to obtain this data.

3、The image caption needs to be obtained before model training, which is stored in the directory data/caption, and the extraction method taken in this paper is the same as CapTrBERT.

4、Syntactic information is extracted using LAL-Parser, and the extracted syntactic information is stored in the directory data/oriAdj, which again needs to be obtained before model training.

We provide extracted image captions and syntactic information, which can be accessed at the following link:

link: https://pan.baidu.com/s/1WtmKmuJyI-MGgcaUQ9UYIQ extraction code: xbpg

Training Models

Run the following command to start model training::

python train.py

dpfn's People

Contributors

cntian0 avatar

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.