We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
入力した文章から抽出したtimexがもっているspanの長さが想定していた長さとちがう。
text = "平成三十一年に起きた出来事はなんですか?" timex = TimexParser().parse(text) print(timex[0].span) # (0,5)
text = "平成三十一年に起きた出来事はなんですか?" timex = TimexParser().parse(text) print(timex[0].span) # (0,6)
もしかしてbugではなく、一度漢数字をアラビア数字にしたあと、spanをとっているのでしょうか?そういう仕様なのでしょうか? もしそうでしたら、変更前の文字列のspan情報が欲しいというfeatureを投げたいです。
The text was updated successfully, but these errors were encountered:
返信遅れてしまい申し訳ありません。
確かにspanの位置がずれており、漢数字からアラビア数字へ変換する際の文字長の変化に対応できていないことが原因です。こちらは修正対象のバグとして対応します。
Sorry, something went wrong.
@reonyanarticle こちらv0.2.2にて対応しました。
No branches or pull requests
🐛 Bug
説明
入力した文章から抽出したtimexがもっているspanの長さが想定していた長さとちがう。
現状挙動
理想の挙動
再現方法やエラー内容
実行環境
追加/補足情報
もしかしてbugではなく、一度漢数字をアラビア数字にしたあと、spanをとっているのでしょうか?そういう仕様なのでしょうか?
もしそうでしたら、変更前の文字列のspan情報が欲しいというfeatureを投げたいです。
The text was updated successfully, but these errors were encountered: