Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add normalization #11

Open
nicolasbotanic opened this issue Oct 30, 2018 · 0 comments
Open

Add normalization #11

nicolasbotanic opened this issue Oct 30, 2018 · 0 comments

Comments

@nicolasbotanic
Copy link
Collaborator

nicolasbotanic commented Oct 30, 2018

Normalization process should be binded with .Flow v2 instruction $normalize. Add a new extension python file /engines/dotflow2/extensions/preprocess.py

This normlization process should be the same expected in any AIML interpreter.
You can include also normal.substitution map from https://github.com/pandorabots/rosie/blob/master/lib/substitutions/normal.substitution

You can test the function with the console. This is the expected response:

$ BBOT_ENV=development python -m channels.console.app joe testbot 1 nodebug

You: :df2 normalize("I'm going to the park")
Testbot: I am going to the park

It should also remove intra-sentence punctuation, not defined in the map:

You: :df2 normalize("test'test'test")
Testbot: test test test
@nicolasbotanic nicolasbotanic changed the title Add normalization support for .Flow v2 instruction $normalize Add normalization support Oct 30, 2018
@nicolasbotanic nicolasbotanic changed the title Add normalization support Add normalization Oct 30, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant