Update app.py
Browse files
app.py
CHANGED
@@ -7,7 +7,7 @@ MODEL_NAME = 'cl-tohoku/bert-base-japanese-whole-word-masking'
|
|
7 |
descriptions = '''BERTを用いたビジネス文書のネガポジ判定。文章を入力すると、その文章のネガポジ判定と判定の信頼度を表示します。'''
|
8 |
|
9 |
tokenizer = BertJapaneseTokenizer.from_pretrained(MODEL_NAME)
|
10 |
-
bert_sc_ = BertForSequenceClassification.from_pretrained("models
|
11 |
bert_sc = bert_sc_.to("cpu")
|
12 |
|
13 |
def func(text):
|
|
|
7 |
descriptions = '''BERTを用いたビジネス文書のネガポジ判定。文章を入力すると、その文章のネガポジ判定と判定の信頼度を表示します。'''
|
8 |
|
9 |
tokenizer = BertJapaneseTokenizer.from_pretrained(MODEL_NAME)
|
10 |
+
bert_sc_ = BertForSequenceClassification.from_pretrained("./models")
|
11 |
bert_sc = bert_sc_.to("cpu")
|
12 |
|
13 |
def func(text):
|