라벨이 chatbot인 게시물 표시

install kochat

## install kochat   (base) root@rasa-virtual-machine:~/kochat/demo# pip3 install kochat Requirement already satisfied: kochat in /root/anaconda3/lib/python3.8/site-packages (1.0.3) Requirement already satisfied: pytorch-crf==0.7.2 in /root/anaconda3/lib/python3.8/site-packages (from kochat) (0.7.2) Requirement already satisfied: pandas==1.0.4 in /root/anaconda3/lib/python3.8/site-packages (from kochat) (1.0.4) Requirement already satisfied: flask==1.1.2 in /root/anaconda3/lib/python3.8/site-packages (from kochat) (1.1.2) Requirement already satisfied: konlpy==0.5.2 in /root/anaconda3/lib/python3.8/site-packages (from kochat) (0.5.2) Requirement already satisfied: joblib==0.15.1 in /root/anaconda3/lib/python3.8/site-packages (from kochat) (0.15.1) Requirement already satisfied: requests==2.24.0 in /root/anaconda3/lib/python3.8/site-packages (from kochat) (2.24.0) Requirement already satisfied: matplotlib==3.2.1 in /root/anaconda3/lib/python3.8/site-packages (from kochat) (3.2.1) Require

Missing (or bad) header file: zlib.h

  ## error occurred (Duckling)  Process exited with code: ExitFailure 1 Logs have been written to: /root/duckling/.stack-work/logs/zlib-0.6.2.1.log Configuring zlib-0.6.2.1... Cabal-simple_mPHDZzAJ_2.4.0.1_ghc-8.6.5: Missing dependency on a foreign library: * Missing (or bad) header file: zlib.h * Missing (or bad) C library: z This problem can usually be solved by installing the system package that provides this library (you may need the "-dev" version). If the library is already installed but in a non-standard location then you can use the flags --extra-include-dirs= and --extra-lib-dirs= to specify where it is.If the library file does exist, it may contain errors that are caught by the C compiler at the preprocessing stage. In this case you can re-run configure with the verbosity flag -v3 to see the error messages. If the header file does exist, it may contain errors that are caught by the C compiler at the prepro

build duckling

  ## git clone (base) root@rasa-virtual-machine:~# git clone https://github.com/facebook/duckling.git Cloning into 'duckling'... remote: Enumerating objects: 16400, done. remote: Counting objects: 100% (777/777), done. remote: Compressing objects: 100% (289/289), done. remote: Total 16400 (delta 515), reused 689 (delta 465), pack-reused 15623 Receiving objects: 100% (16400/16400), 7.13 MiB | 12.97 MiB/s, done. Resolving deltas: 100% (11636/11636), done. (base) root@rasa-virtual-machine:~# cd duckling/   ## build duckling (base) root@rasa-virtual-machine:~/duckling# stack build Downloaded lts-14.20 build plan. Preparing to install GHC (tinfo6) to an isolated location. This will not interfere with any system-level installation. Downloaded ghc-tinfo6-8.6.5. Installed GHC. Selected mirror https://s3.amazonaws.com/hackage.fpcomplete.com/ Downloading root Selected mirror https://s3.amazonaws.com/hackage.fpcomplete.com/ Downloading timestamp Downloading snapshot Downloading mirrors Ca

chatterbot on windows (No module named 'chatterbot_corpus' error)

chatterbot환경 setup  ModuleNotFoundError: No module named 'chatterbot_corpus' error가 발생할 경우의 대처 1. 환경준비     Centos 7.x     Anaconda Python 3.7 version 2. 에러 화면 PS C:\work\python\test> pip install -U PyYAML Collecting PyYAML   Using cached https://files.pythonhosted.org/packages/f5/93/b5ebdabc7e450418c26a1395d995d878a59bc4272d6ac63d2ada922126ad/PyYAML-5.1.1-cp37-cp37m-win_amd64.whl Installing collected packages: PyYAML   Found existing installation: PyYAML 5.1 Cannot uninstall 'PyYAML'. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead  to only a partial uninstall. PS C:\work\python> cd 'c:\work\python'; ${env:PYTHONIOENCODING}='UTF-8'; ${env:PYTHONUNBUFFERED}='1'; & 'C:\Users\sungm\Anaconda3\python.exe' 'c:\Users\sungm\.vscode\extensions\ms-python.python-2019.6.24221\pythonFiles\ptvsd_launcher.py' '--default' '--clien