Created
February 26, 2016 16:35
-
-
Save pkra/118dde95afdceec9dadd to your computer and use it in GitHub Desktop.
Simple SRE snippet
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// `$ npm install speech-rule-engine` | |
var sre = require('speech-rule-engine'); | |
var mathml = '<math xmlns="http://www.w3.org/1998/Math/MathML"> <mfrac> <mn>1</mn> <mn>2</mn> </mfrac> </math>'; | |
sre.setupEngine({semantics: true, domain: "mathspeak", style: "brief"}); | |
console.log(sre.processExpression(mathml)); | |
// one-half |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment