diff --git a/ArticutAPI/ArticutAPI.py b/ArticutAPI/ArticutAPI.py index c5605e7..745ab44 100644 --- a/ArticutAPI/ArticutAPI.py +++ b/ArticutAPI/ArticutAPI.py @@ -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 } diff --git a/ArticutAPI/MP_ArticutAPI.py b/ArticutAPI/MP_ArticutAPI.py index 9d3cb3d..62d3d19 100644 --- a/ArticutAPI/MP_ArticutAPI.py +++ b/ArticutAPI/MP_ArticutAPI.py @@ -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)