LoginSignup
0
0

More than 1 year has passed since last update.

Pythonでつくる対話システム

Last updated at Posted at 2022-05-04

サポートサイト

MeCabインストール

参考サイト

mecab-python3インストール

pip install mecab-python3

PySIde2インストール

pip install PySIde2

気象庁 天気予報API

https://www.jma.go.jp/bosai/forecast/data/overview_forecast/130000.json

地域コード

requestsインストール

pip install requests

pipインストールライブリ確認

pip list

ランダムアクセス タスク指向型対話システム

image.png

image.png

image.png
image.png

コマンド

フレームの設定

request-weather,place=大阪,type=天気

フレームの訂正

※place=東京が設定されている場合

correct-info,place=東京

全フレーム初期化

initialize

SVMを用いた対話行為の推定

scikit-learn(機械学習ライブラリ)インストール

pip install sklearn

dill(データ保存)ライブラリインストール

pip install dill

labels:は対話行為の配列
sent:は発話を要素解析し分割したものをスペースで区切ったもの

image.png

tf-idf

TfidfVectorizer

https://gotutiyan.hatenablog.com/entry/2020/09/10/181919
https://qiita.com/ground0state/items/155b77f4c07e1a509a14

image.png

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0