All Projects β†’ thuiar β†’ Mmsa

thuiar / Mmsa

Licence: mit
CH-SIMS: A Chinese Multimodal Sentiment Analysis Dataset with Fine-grained Annotations of Modality (ACL2020)

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Mmsa

Setl
A simple Spark-powered ETL framework that just works 🍺
Stars: ✭ 79 (+12.86%)
Mutual labels:  dataset, framework
Edxposedmanager
Companion Android application for EdXposed
Stars: ✭ 1,172 (+1574.29%)
Mutual labels:  framework
Amp Theme Framework
Start Creating an AMP theme in minutes - This is a default / boilerplate theme, you can use this, modify and make one your own.
Stars: ✭ 69 (-1.43%)
Mutual labels:  framework
Toronto 3d
A Large-scale Mobile LiDAR Dataset for Semantic Segmentation of Urban Roadways
Stars: ✭ 69 (-1.43%)
Mutual labels:  dataset
Smqtk
Python toolkit for pluggable algorithms and data structures for multimedia-based machine learning.
Stars: ✭ 69 (-1.43%)
Mutual labels:  framework
Csvpack
csvpack library / gem - tools 'n' scripts for working with tabular data packages using comma-separated values (CSV) datafiles in text with meta info (that is, schema, datatypes, ..) in datapackage.json; download, read into and query CSV datafiles with your SQL database (e.g. SQLite, PostgreSQL, ...) of choice and much more
Stars: ✭ 71 (+1.43%)
Mutual labels:  dataset
Expandable Collection View Kit
πŸ—‚ Expandable, hierarchical, flexible, declarative UICollectionView with diffable data sources & SwiftUI-like tree items builder [Swift 5.1, iOS & iPadOS 13].
Stars: ✭ 69 (-1.43%)
Mutual labels:  framework
Loadingshimmer
An easy way to add a shimmering effect to any view with just one line of code. It is useful as an unobtrusive loading indicator.
Stars: ✭ 1,180 (+1585.71%)
Mutual labels:  framework
Lithium
li₃ is the fast, flexible and most RAD development framework for PHP
Stars: ✭ 1,176 (+1580%)
Mutual labels:  framework
Fizzygum
a new web framework, an entire platform really, designed from the ground up to handle complex things easily. Put the power of an entire Operating System at your fingertips.
Stars: ✭ 70 (+0%)
Mutual labels:  framework
Slim3
Slim Framework 3 Skeleton Application
Stars: ✭ 70 (+0%)
Mutual labels:  framework
Extosc
extOSC is a tool dedicated to simplify creation of applications in Unity with OSC protocol usage.
Stars: ✭ 69 (-1.43%)
Mutual labels:  framework
Engine
C++11 and SDL2 lightweight 2d game framework
Stars: ✭ 71 (+1.43%)
Mutual labels:  framework
Dolphin Platform
This repository contains all java related sources of the Dolphin Platform.
Stars: ✭ 69 (-1.43%)
Mutual labels:  framework
Foal
Elegant and all-inclusive Node.Js web framework based on TypeScript. πŸš€.
Stars: ✭ 1,176 (+1580%)
Mutual labels:  framework
Deep Segmentation
CNNs for semantic segmentation using Keras library
Stars: ✭ 69 (-1.43%)
Mutual labels:  dataset
Swoft Framework
[READ ONLY] Swoft Framework, base of Swoft
Stars: ✭ 70 (+0%)
Mutual labels:  framework
Chubbyphp Framework
A based PSR-15 microframework that also sets maximum flexibility with minimum complexity and easy replaceability of the individual components, but also of the framework.
Stars: ✭ 69 (-1.43%)
Mutual labels:  framework
Devis
A microservices framework for Node.js
Stars: ✭ 72 (+2.86%)
Mutual labels:  framework
Raccoon dataset
The dataset is used to train my own raccoon detector and I blogged about it on Medium
Stars: ✭ 1,177 (+1581.43%)
Mutual labels:  dataset

Python 3.6

MMSA

Pytorch implementation for codes in multimodal sentiment analysis.

Note: We strongly recommend that you browse the overall structure of our code at first. If you have any question, feel free to contact us.

Support Models

In this framework, we support the following methods:

Type Model Name From
Single-Task EF_LSTM MultimodalDNN
Single-Task LF_DNN -
Single-Task TFN Tensor-Fusion-Network
Single-Task LMF Low-rank-Multimodal-Fusion
Single-Task MFN Memory-Fusion-Network
Single-Task Graph-MFN Graph-Memory-Fusion-Network
Single-Task MulT(without CTC) Multimodal-Transformer
Single-Task MISA MISA
Multi-Task MLF_DNN MMSA
Multi-Task MTFN MMSA
Multi-Task MLMF MMSA
Multi-Task SELF_MM Self-MM

Results

Detailed results are shown in results/result-stat.md

Usage

Clone codes

  • Clone this repo and install requirements.
git clone https://github.com/thuiar/MMSA
cd MMSA
pip install -r requirements.txt

Datasets and pre-trained berts

Download dataset features and pre-trained berts from the following links.

For all features, you can use SHA-1 Hash Value to check the consistency.

MOSI/unaligned_50.pkl: 5da0b8440fc5a7c3a457859af27458beb993e088
MOSI/aligned_50.pkl: 5c62b896619a334a7104c8bef05d82b05272c71c
MOSEI/unaligned_50.pkl: db3e2cff4d706a88ee156981c2100975513d4610
MOSEI/aligned_50.pkl: ef49589349bc1c2bc252ccc0d4657a755c92a056
SIMS/unaligned_39.pkl: a00c73e92f66896403c09dbad63e242d5af756f8

Due to the size limitations, the MOSEI features and SIMS raw videos are available in Baidu Cloud Drive only. All dataset features are organized as:

{
    "train": {
        "raw_text": [],
        "audio": [],
        "vision": [],
        "id": [], # [video_id$_$clip_id, ..., ...]
        "text": [],
        "text_bert": [],
        "audio_lengths": [],
        "vision_lengths": [],
        "annotations": [],
        "classification_labels": [], # Negative(< 0), Neutral(0), Positive(> 0)
        "regression_labels": []
    },
    "valid": {***}, # same as the "train" 
    "test": {***}, # same as the "train"
}

For MOSI and MOSEI, the pre-extracted text features are from BERT, different from the original glove features in the CMU-Multimodal-SDK.

For SIMS, if you want to extract features from raw videos, you need to install Openface Toolkits first, and then refer our codes in the data/DataPre.py.

python data/DataPre.py --data_dir [path_to_Dataset] --language ** --openface2Path  [path_to_FeatureExtraction]

For bert models, you also can download Bert-Base, Chinese from Google-Bert. And then, convert tensorflow into pytorch using transformers-cli

Then, modify config/config_*.py to update dataset pathes.

Run

python run.py --modelName *** --datasetName ***

Paper

Please cite our paper if you find our work useful for your research:

@inproceedings{yu2020ch,
  title={CH-SIMS: A Chinese Multimodal Sentiment Analysis Dataset with Fine-grained Annotation of Modality},
  author={Yu, Wenmeng and Xu, Hua and Meng, Fanyang and Zhu, Yilin and Ma, Yixiao and Wu, Jiele and Zou, Jiyun and Yang, Kaicheng},
  booktitle={Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics},
  pages={3718--3727},
  year={2020}
}
@article{yu2021learning,
  title={Learning Modality-Specific Representations with Self-Supervised Multi-Task Learning for Multimodal Sentiment Analysis},
  author={Yu, Wenmeng and Xu, Hua and Yuan, Ziqi and Wu, Jiele},
  journal={arXiv preprint arXiv:2102.04830},
  year={2021}
}
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].