Skip to content

Instantly share code, notes, and snippets.

@awwong1
Last active November 19, 2018 19:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save awwong1/4b81a2936f242e70faeaf0974be4aa08 to your computer and use it in GitHub Desktop.
Save awwong1/4b81a2936f242e70faeaf0974be4aa08 to your computer and use it in GitHub Desktop.
HHMM Example

HHMM Simple Structure

Given the following context free grammar (CFG) for arithmetic:

<expression> --> number
<expression> --> ( <expression> )
<expression> --> <expression> + <expression>
<expression> --> <expression> - <expression>
<expression> --> <expression> * <expression>
<expression> --> <expression> / <expression>

A CFG inspired HHMM structure looks like this:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment