Spaces:
Sleeping
Sleeping
Commit
·
efffff2
1
Parent(s):
230c67c
my_uie.py
CHANGED
|
@@ -7,6 +7,8 @@ from paddlenlp import Taskflow
|
|
| 7 |
# ie.set_schema(schema) # Reset schema
|
| 8 |
# print(ie('这个产品用起来真的很流畅,我非常喜欢'))
|
| 9 |
def emo_analysize(text):
|
|
|
|
| 10 |
senta = Taskflow("sentiment_analysis")
|
| 11 |
result=senta(text)
|
| 12 |
-
|
|
|
|
|
|
| 7 |
# ie.set_schema(schema) # Reset schema
|
| 8 |
# print(ie('这个产品用起来真的很流畅,我非常喜欢'))
|
| 9 |
def emo_analysize(text):
|
| 10 |
+
print(text)
|
| 11 |
senta = Taskflow("sentiment_analysis")
|
| 12 |
result=senta(text)
|
| 13 |
+
print(result)
|
| 14 |
+
return result
|