keiffster / program-y

Python 3.x based AIML 2.0 Chatbot interpreter, framework, related programs and knowledge files
https://keiffster.github.io/program-y/
Other
349 stars 136 forks source link

"." (dot) in the middle of a sentence trigger 2 requests. Any way the disable this ? #280

Closed ohoachuck closed 3 years ago

ohoachuck commented 3 years ago

Hello, quick question, when a request have a "." (dot) between 2 sentences, it's being considered as 2 requests.

For instance :

[question]: Hello. What time is it ?
[answer]: The time is 07:42 PM.

Any idea how to prevent that ? I had a look at processors, but I don't think this is the route ?

O.

keiffster commented 3 years ago

It’s the sentence splitter which does that. You would either remove the the dot before splitter or remove the splitter via the config setting

Sent from my iPhone

On 13 Dec 2020, at 18:47, ohoachuck notifications@github.com wrote:

 Hello, quick question, when a request have a "." (dot) between 2 sentences, it's being considered as 2 requests.

For instance :

[question]: Hello. What time is it ? [answer]: The time is 07:42 PM. Any idea how to prevent that ? I had a look at processors, but I don't think this is the route ?

O.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe.

ohoachuck commented 3 years ago

Thanx, I’ll check this.

O.

Envoyé de mon iPhone

Le 13 déc. 2020 à 20:03, Keith Sterling notifications@github.com a écrit :

 It’s the sentence splitter which does that. You would either remove the the dot before splitter or remove the splitter via the config setting

Sent from my iPhone

On 13 Dec 2020, at 18:47, ohoachuck notifications@github.com wrote:

 Hello, quick question, when a request have a "." (dot) between 2 sentences, it's being considered as 2 requests.

For instance :

[question]: Hello. What time is it ? [answer]: The time is 07:42 PM. Any idea how to prevent that ? I had a look at processors, but I don't think this is the route ?

O.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe. — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

ohoachuck commented 3 years ago

Thank you Keith, this is exactly what I needed ! Just pointing to your documentation references for others that might have the same question: https://github.com/keiffster/program-y/wiki/Sentence-Splitting

O.