duckling: int() argument must be a string, a bytes-like object or a number, not 'java.lang.String',

 

This is due to one of Duckling's dependency JPype. If you dive into the code, you'll see that when starting the JVM using JPype, an argument "convertStrings" needs to be passed. Before V0.8 this argument was by default set to "true", but it was switch to "false" after that. This should be an easy fix within Duckling if you can modify the package code. If not, then downgrade your Jpype version will also work.(https://stackoverflow.com/questions/64841426/duckling-int-argument-must-be-a-string-a-bytes-like-object-or-a-number-not)

 

pip install Jpype1==0.7.5

 

posted @ 2021-10-27 11:07  春树&暮云  阅读(161)  评论(0编辑  收藏  举报