Giter Site home page Giter Site logo

小白的疑问 about pyaiml HOT 13 OPEN

andelf avatar andelf commented on May 13, 2024
小白的疑问

from pyaiml.

Comments (13)

andelf avatar andelf commented on May 13, 2024

因为很久没有维护,猜测是目前的Python版本处理unicode和当时不太相同。
其他原因还可能是不同操作系统的默认编码问题。我想想怎么整。预计周末前给你回复

from pyaiml.

JonathanZcl avatar JonathanZcl commented on May 13, 2024

你中文处理那一页是放在 AimlParser.py这个文件的吗?

from pyaiml.

JonathanZcl avatar JonathanZcl commented on May 13, 2024

您好,请问AimlParser.py文件您更新了吗?

from pyaiml.

andelf avatar andelf commented on May 13, 2024

英文处理是没问题的,因为英文可以按照空格分割。
但是中文就不太容易整,所以之前的处理方法是按照中文,把每个单字之间加上空格。
相关代码的确是在 AimlParser.py

from pyaiml.

sunzejian avatar sunzejian commented on May 13, 2024

image
为什么有时候不回复啊

from pyaiml.

andelf avatar andelf commented on May 13, 2024

诶?不应该啊。。可以尝试print下规则列表

from pyaiml.

andelf avatar andelf commented on May 13, 2024

或者是输入时候的编码没有办法识别?

from pyaiml.

sunzejian avatar sunzejian commented on May 13, 2024

在spyder里面粘贴 代码里面的汉语 是有回复的,但 用输入法打字 又不回复了
image
我正在想是不是输入的问题,但半角输入和全角输入都是一个操行。

from pyaiml.

sunzejian avatar sunzejian commented on May 13, 2024

我想了两天还是只能在spyder里面靠粘贴进行输入,菜鸟一个

from pyaiml.

andelf avatar andelf commented on May 13, 2024

噗。。可能是shell有点问题。输入的编码?

from pyaiml.

sunzejian avatar sunzejian commented on May 13, 2024

我在网上看到很多人在utf-8编码条件下,载cmd里面无法输入中文,或输入中文回复却只能看到乱码,只有你截图里面cmd界面实现了中文交互,你用的是什么版本啊

from pyaiml.

sunzejian avatar sunzejian commented on May 13, 2024

是用半角还是全角,用什么输入法,用什么编码实现的啊

from pyaiml.

andelf avatar andelf commented on May 13, 2024

我平时 linux 服务器下没有问题。

from pyaiml.

Related Issues (10)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.