Commit
ยท
47fdca1
1
Parent(s):
7644bbe
Add README.md
Browse files
README.md
ADDED
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
language: ko
|
3 |
+
---
|
4 |
+
|
5 |
+
# BERT multilingual basecased finetuned with NSMC
|
6 |
+
|
7 |
+
This model is a fine-tune checkpoint of [bert-base-multilingual-cased](https://huggingface.co/bert-base-multilingual-cased), fine-tuned on [NSMC(Naver Sentiment Movie Corpus)](https://github.com/e9t/nsmc).
|
8 |
+
|
9 |
+
## Usage
|
10 |
+
|
11 |
+
You can use this model directly with a pipeline for sentiment-analysis:
|
12 |
+
|
13 |
+
```python
|
14 |
+
>>> from transformers import pipeline
|
15 |
+
>>> classifier = pipeline(
|
16 |
+
"sentiment-analysis", model="sangrimlee/bert-base-multilingual-cased-nsmc"
|
17 |
+
)
|
18 |
+
>>> classifier("ํ ...ํฌ์คํฐ๋ณด๊ณ ์ด๋ฉ์ํ์ค....์ค๋ฒ์ฐ๊ธฐ์กฐ์ฐจ ๊ฐ๋ณ์ง ์๊ตฌ๋.")
|
19 |
+
>>> classifier("์ก์
์ด ์๋๋ฐ๋ ์ฌ๋ฏธ ์๋ ๋ช์๋๋ ์ํ")
|
20 |
+
|
21 |
+
[{'label': 'negative', 'score': 0.9642567038536072}]
|
22 |
+
[{'label': 'positive', 'score': 0.9970554113388062}]
|
23 |
+
```
|