jslin09 commited on
Commit
9c061f5
·
verified ·
1 Parent(s): ec8b6e5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -92,7 +92,7 @@ def tag_in_color(tag_content, tag):
92
  tag_content (str): 已經標註完畢並有標籤的內容。
93
  tag (str): 標籤名稱,英文,沒有括號。
94
  Return:
95
- result (str): 去除標籤並含有 colorama 標色符號的字串。
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: