elitcloud / elit

🔠 Evolution of Language and Information Technology
https://elit.cloud
Other
47 stars 7 forks source link

Sentiment analysis #15

Closed bgshin closed 6 years ago

bgshin commented 6 years ago

PIP packages

Required files

Options for users to choose CPU or GPU

Usage of the SentimentAnalysis module

# initialize the class for SST (movie review)
sa = SSTModel()
# decode
y, att, raw_att = sa.decode(tokenized_sentences)