Skip to content

Commit

Permalink
修正 parse() timeRef 參數功能失效。
Browse files Browse the repository at this point in the history
  • Loading branch information
EclairCJ committed May 14, 2021
1 parent 298200c commit 53c5a6e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ArticutAPI/ArticutAPI.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ def parse(self, inputSTR, level="", userDefinedDictFILE=None, chemicalBOOL=True,
"opendata_place":self.openDataPlaceAccessBOOL, #Bool Type:為 True 或 False,表示是否允許 Articut 讀取 OpenData 中的地點名稱。
"wikidata": self.wikiDataBOOL, #Bool Type:為 True 或 False,表示是否允許 Articut 讀取 WikiData 中的條目名稱。
"index_with_pos":False,
"time_ref":"",
"time_ref":str(timeRef),
"pinyin":pinyin
}

Expand Down
2 changes: 1 addition & 1 deletion ArticutAPI/MP_ArticutAPI.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ def _run(self, index, inputLIST, level="lv2", userDefinedDICT={}, chemicalBOOL=T
"opendata_place": openDataPlaceBOOL,
"wikidata": wikiDataBOOL,
"index_with_pos": indexWithPOS,
"time_ref": timeRef,
"time_ref": str(timeRef),
"pinyin": pinyin}
#print(payload)
response = requests.post("{}/Articut/BulkAPI/".format(self.url), json=payload)
Expand Down

0 comments on commit 53c5a6e

Please sign in to comment.