Skip to content

Aspect Based Sentiment Analysis, PyTorch Implementations. 基于方面的情感分析,使用PyTorch实现。

License

Notifications You must be signed in to change notification settings

prasys/ABSA-PyTorch

 
 

Repository files navigation

ABSA-PyTorch

Aspect Based Sentiment Analysis, PyTorch Implementations.

LICENSE Gitter

Requirement

  • pytorch >= 0.4.0
  • numpy >= 1.13.3
  • sklearn
  • python 3.6 / 3.7
  • transformers

To install requirements, run pip install -r requirements.txt.

Usage

Training

python train.py --model_name bert_spc --dataset restaurant

Inference

  • Refer to infer_example.py for both non-BERT-based models and BERT-based models.

Licence

MIT

About

Aspect Based Sentiment Analysis, PyTorch Implementations. 基于方面的情感分析,使用PyTorch实现。

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 100.0%