프로젝트
GitHub에서 보기
barissayil/SentimentAnalysis
소개
Stanford Sentiment Treebank에서 BERT, ALBERT 또는 DistilBERT를 미세 조정해 학습한 감정 분석 신경망입니다.
시스템 및 인프라측정된 스타 증가
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
OriginalSentiment Analysis
Sentiment analysis neural network trained by fine-tuning BERT, ALBERT, or DistilBERT on the Stanford Sentiment Treebank.

Setup Sentiment Analysis
Clone Sentiment Analysis, update lists of packages, install Pyton 3.9
git clone https://github.com/barissayil/SentimentAnalysis.git
cd SentimentAnalysis
sudo apt-get update
sudo apt-get install python3.9
Verify that you have Python 3.9.10
python3.9 --version
Create virtual environment with Python 3.9.10 binary, activate it
python3.9 -m venv env
source env/bin/activate
Install necessary packages
pip install -r requirements.txt
Test it and verify that it passes all tests
python -m pytest
Use Sentiment Analysis with my model
Evaluate
python evaluate.py
Analyze your inputs
python analyze.py
Run server, and verify that you get back 99% positive
python server.py
curl localhost:5000 -G -d text=good
Train your own model and use Sentiment Analysis with it
Train (i.e.fine-tune) BERT
python train.py --model_name_or_path bert-base-uncased --output_dir XXX --num_eps 2
bert-base-uncased, albert-base-v2, distilbert-base-uncased, and other similar models are supported.
Evaluate
python evaluate.py --model_name_or_path XXX
Analyze your inputs
python analyze.py --model_name_or_path XXX
Run server
python server.py --model_name_or_path XXX
관련 프로젝트 살펴보기
불러오는 중…