Skip to content

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

Closed
@tonezzz

Description

@tonezzz

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions