AI Zone Admin Forum Add your forum

NEWS: Chatbots.org survey on 3000 US and UK consumers shows it is time for chatbot integration in customer service!read more..

How can I make a sentence which ends in a quote been sentence splitted but not for regular quotes
 
 

I have a sentence which looks like this:

“Hello brown fox.”  Did you like that?

I would like AIML to know to split the sentence between ‘fox’ and ‘Did.’  Currently, it does not do that since `”` is not a sentence splitter.

However, if it were a sentence splitter, then this sentence would fail:

I never liked “brown” foxes.

Wondering if I should / can substitute `.”` with something like “splitquote” and make “splitequote” the sentence spitter.  Then denormalize potentially.

 

 

 
  [ # 1 ]

It doesn’t appear to work to do a normal.substitution on `.”` which is what I need to do.  This appears to be something that needs to be done outside of AIML.

It FIRST splits on the `.`  THEN it tries to substitute on `”` which won’t work because it will not be able to distinguish between a `”` in the middle of a sentence or at the end.

 

 
  [ # 2 ]

Hi, I tried to be sentenced split on .” but it doesn’t seem to work, does it only work with a single character?

 

 
  [ # 3 ]

Do not check for quotes. This should be removed at the normalization process anyway and leave you with:

Hello brown fox.  Did you like that?

This will then split correctly.

 

 
  [ # 4 ]

When removing from the normalization, does that mean I should have a value of ” replaced witha space?  I started my normal file from scratch so I could understand the behavior.

What if I want to be able to store that the input included quotes?

 

 
  login or register to react