You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Normalization process should be binded with .Flow v2 instruction $normalize. Add a new extension python file /engines/dotflow2/extensions/preprocess.py
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
The text was updated successfully, but these errors were encountered:
nicolasbotanic
changed the title
Add normalization support for .Flow v2 instruction $normalize
Add normalization support
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:
It should also remove intra-sentence punctuation, not defined in the map:
The text was updated successfully, but these errors were encountered: