Update app.py
Browse files
app.py
CHANGED
@@ -92,7 +92,7 @@ def tag_in_color(tag_content, tag):
|
|
92 |
tag_content (str): 已經標註完畢並有標籤的內容。
|
93 |
tag (str): 標籤名稱,英文,沒有括號。
|
94 |
Return:
|
95 |
-
|
96 |
'''
|
97 |
response_head = tag_content.split("標註結果:\n")[0]
|
98 |
try:
|
|
|
92 |
tag_content (str): 已經標註完畢並有標籤的內容。
|
93 |
tag (str): 標籤名稱,英文,沒有括號。
|
94 |
Return:
|
95 |
+
parts (list[tuple]): 傳回包含標籤的 tuple 串列。每個 tuple 為 (str, tag_name) ,如果沒有要標色的tag_name傳回None。
|
96 |
'''
|
97 |
response_head = tag_content.split("標註結果:\n")[0]
|
98 |
try:
|