Menu

Literal Phrases in Corpus File

Help
2010-05-07
2012-09-22
  • Andrew Durstewitz

    Sorry if this is a dumb question, however it's something I don't yet
    understand.

    I tried creating a corpus file with a series literal names in it:

    tell andrew smith
    tell bob jones
    tell kari newhouse

    The problem i'm having is that the language model, created from lmtool3,
    respondes with things like "andrew andrew" or "bob newhouse". My goal is to
    only match an entire string and not have a mix and match. Is that possible?

    Thanks, Andrew

     
  • Mark Fugate

    Mark Fugate - 2010-05-08

    Andrew, I use grammars that I generate from a database for the tasks like the
    one you described in your post. My experiences have been very good using
    grammars. Below is an example I created from your example above which includes
    a bit more thn your example. You can read all of the details about grammar
    writing at http://www.w3.org/TR/jsgf/

    EXAMPLE -

    JSGF V1.0;

    grammar verb_so_and_so ;

    public <tell_so_and_so> = <verb> <first_name> ; </first_name></verb></tell_so_and_so>

    <verb> = tell | (say to) | inform ; </verb>

    <first_name> = andrew | bob | kari ; </first_name>

    <surname> = smith | jones | newhouse; </surname>

     
  • Andrew Durstewitz

    Perfect, thanks!

     

Log in to post a comment.