PeterWolf-tw / NTNU_TextProcessing_2020

9 stars 27 forks source link

ArticutAPI remote complains about exceeding characters #19

Open BirkhoffLee opened 3 years ago

BirkhoffLee commented 3 years ago

Example code:

articut = ArticutAPI.Articut()
tourContent = jsonTextReader("./tourblog.json")["content"]
parsed = articut.parse(tourContent, level="lv2")

articut.parse prints out:

{'status': False, 'msg': 'Your input_str is too long (over 2000 characters.)', 'product': 'https://api.droidtown.co/product/', 'document': 'https://api.droidtown.co/document/'}
PeterWolf-tw commented 3 years ago

如同 msg 裡提到的,你的 input_str 太長了!(一次超過 2000 個字符) 請分段送入 parse() 吧。:)