I tried to whittle down GREATER THAN responses by doing this:
                queryHeard=queryHeard.replaceAll("greater than",">");
                queryHeard=queryHeard.replaceAll("greater then",">");
                queryHeard=queryHeard.replaceAll("crater than",">");
                queryHeard=queryHeard.replaceAll("craters than",">");
                queryHeard=queryHeard.replaceAll("crater then",">");
                queryHeard=queryHeard.replaceAll("craters then",">");

I'll have to check out retainAll

Carmen
-- 
Carmen
http://www.twitter.com/CarmenDelessio
http://www.talkingandroid.com
http://www.facebook.com/BFFPhoto
http://www.twitter.com/DroidDrop


On Sun, Nov 1, 2009 at 8:57 PM, davemac <davemac...@gmail.com> wrote:

> Once you get back the set of responses you could filter them down to
> those in your valid commands set. Try the retainAll() method on
> matches using your valid commands as the argument. You'll probably
> either get one or zero elements left in matches every time. The same
> thing should work for numbers.
>
> - dave
>
> On Nov 1, 5:36 pm, moa <mich...@jixel.com> wrote:
> > I want to use the SR api to handle commands in my application. I know
> > at any given point in my application what the valid commands would be
> > at that point so would like to limit the results that the SR is
> > matched against.
> >
> > For example, if the only valid commands were "Yes" or "No" I would
> > like to be able to restrict the SR to only try and match against those
> > two words. Otherwise on full vocabulary I get "Snow" and other false
> > words. Limiting the vocabulary should make matching 90%+ accurate on
> > limited words.
> >
> > Is this possible?
> >
> > Also, can I limit the SR to only match numerics for number input only?
> >
> > The internal dialer seems to be able to do this sort of this, so can
> > I?
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com<android-developers%2bunsubscr...@googlegroups.com>
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to