WENior commited on
Commit
5d654ff
·
verified ·
1 Parent(s): b8e5011

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
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="HamzaFarhan/English-Fine-Grained-Hedging-Detector",
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