PyThaiNLP / pythainlp

Thai Natural Language Processing in Python.

Home Page:https://pythainlp.github.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

bug: ModuleNotFoundError: No module named 'pythainlp.chat'

tonezzz opened this issue · comments

Description

Hi,
I'm just starting to learn to build AI. I stumbled to your project and it looks interesting. So I'm trying to learn to create a chat bot out of your project now. Starting from the test-chat.jpynb. But I cannot run it.
Please let me know what've I missed or did wrong.
Thank you very much.
Cheers,
Tony.

Expected results

A successful import of:
from pythainlp.chat.core import ChatBotModel

Current results


ModuleNotFoundError Traceback (most recent call last)
in <cell line: 1>()
----> 1 from pythainlp.chat.core import ChatBotModel
2 import torch
ModuleNotFoundError: No module named 'pythainlp.chat'

NOTE: If your import is failing due to a missing package, you can
manually install dependencies using either !pip or !apt.

To view examples of installing some common dependencies, click the
"Open Examples" button below.

Steps to reproduce

  1. Open test-chat.jpynb on Colab.
  2. Add "!pip install --upgrade pythainlp[full]" on top & run.
  3. Run the import block.

PyThaiNLP version

4.1.0beta1

Python version

3.10.6

Operating system and version

(from Colab)
Linux version 5.15.109+ (builder@a1d285de7a25) (Chromium OS 15.0_pre458507_p20220602-r18 clang version 15.0.0 (/var/tmp/portage/sys-devel/llvm-15.0_pre458507_p20220602-r18/work/llvm-15.0_pre458507_p20220602/clang a58d0af058038595c93de961b725f86997cf8d4a), LLD 15.0.0) #1 SMP Fri Jun 9 10:57:30 UTC 2023

More info

No response

Possible solution

No response

Files

No response

Hello @tonezzz, thank you for your interest in our work!

If this is a bug report, please provide screenshots and minimum viable code to reproduce your issue, otherwise we can not help you.

Here're two screen shots of the 1st block added by me and the 2nd block from test-chat.jpynb.

s-02
s-01

Hello! PyThaiNLP v4.1.0beta1 still is in beta channel. You can install by !pip install --pre --upgrade pythainlp[full]

Hello! PyThaiNLP v4.1.0beta1 still is in beta channel. You can install by !pip install --pre --upgrade pythainlp[full]

Thank you. I'm quite sure I tried that before without success. Anyway, I tried again and it works now.
Have a nice day & Cheers.
image

OK, now I'm using GPU instance. And still got this error. Could you help me again please?
image

I just released PyThaiNLP v.4.1.0-beta2 cc9139c. Can you try again?

OK, now I'm using GPU instance. And still got this error. Could you help me again please? image

I just released PyThaiNLP v.4.1.0-beta2 cc9139c. Can you try again?

Nice! It's working now Thank you.
image