If you work with strings in your Python scripts and you're writing obscure logic to process them, then you need to look into regex in Python. It lets you describe patterns instead of writing ...
今回作成するQA対話システムでは、用意した質問回答リストからユーザー発話に近い質問を見つける処理が必要となります。 ここで、これまでに本連載で作成してきた対話システムにおいて、ユーザー発話の内容で分岐する処理を思い出してみましょう。