Match Complete Phrase

Home Forums OpenEars Match Complete Phrase

Viewing 2 posts - 1 through 2 (of 2 total)

  • Author
    Posts
  • #1024158
    amz4u2nv
    Participant

    Hi,
    I was hoping you could help with an issue –
    I would like to match the entire phrase – i.e.
    “BEDROOM LIGHT ON”
    “BEDROOM LIGHT OFF”
    However when saying bedroom light on it recognises this as bedroom light on off.

    So it looks like its matching individual words within the phrase. hope this make sense –

    NSArray *words = [NSArray arrayWithObjects:
    @”COMPUTER”,
    @”BEDROOM”,
    @”BED”,
    @”HALL”,
    @”TEMPLE”,
    @”ARCH”,
    @”SITTING ROOM”,
    @”HEATING”,
    @”PLAY MUSIC”,
    @”PLAY BOLLYWOOD MUSIC”,
    @”PLAY ENGLISH MUSIC”,
    @”STOP MUSIC”,
    @”TRAIN”,
    @”BUS”,
    @”STATUS”,
    @”WEATHER”,
    @”RAIN”,
    @”ENERGY”,
    @”EVENTS”,
    @”ON”,
    @”OFF”
    @”LIGHT”,
    @”DUSTBIN”,
    @”THANKS”,nil
    ];

    #1024159
    Halle Winkler
    Politepix

    Welcome,

    Sure, check out OpenEars’ rule-based grammar tools (in contrast to the probabilistic language models it uses by default as in your example above). There is some info about it in the OELanguageModelGenerator docs and here is the blog post I made when I introduced the feature, which goes into more depth about how to use it:

    https://www.politepix.com/2014/04/10/openears-1-7-introducing-dynamic-grammar-generation/

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.