Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -28,13 +28,15 @@ formality_cls = pipeline("text-classification", model="LenDigLearn/formality-cla
|
|
| 28 |
# 英文 hedge / uncertainty(委婉/模糊表达)
|
| 29 |
hedge_cls = pipeline(
|
| 30 |
"text-classification",
|
| 31 |
-
model="
|
| 32 |
device="cpu",
|
| 33 |
truncation=True,
|
| 34 |
max_length=256,
|
| 35 |
padding="max_length"
|
| 36 |
)
|
| 37 |
|
|
|
|
|
|
|
| 38 |
|
| 39 |
# ---------- 2. 一些简单的中文 & 英文规则打分函数 ----------
|
| 40 |
|
|
|
|
| 28 |
# 英文 hedge / uncertainty(委婉/模糊表达)
|
| 29 |
hedge_cls = pipeline(
|
| 30 |
"text-classification",
|
| 31 |
+
model="siebert/sentiment-roberta-large-english",
|
| 32 |
device="cpu",
|
| 33 |
truncation=True,
|
| 34 |
max_length=256,
|
| 35 |
padding="max_length"
|
| 36 |
)
|
| 37 |
|
| 38 |
+
)
|
| 39 |
+
|
| 40 |
|
| 41 |
# ---------- 2. 一些简单的中文 & 英文规则打分函数 ----------
|
| 42 |
|