[Olympus developers 528]: Re: Probem about write grammar file
Alex Rudnicky
Alex.Rudnicky at cs.cmu.edu
Mon Jun 1 13:47:31 EDT 2015
It's not entirely what you mean by "number". If you mean digit then the grammar should have something like
[digit]
(one)
(two)
(three)
(four)
(five)
(six)
(seven)
(eight)
(nine)
(zero)
;
If you need digit strings, you could do:
[digits]
(+[digit])
;
If you want numbers, you will have to include a number sub-grammar and use the DateTime module to covert the word string into an actual number. This is available as part of the "generic" grammar; for example see:
http://trac.speech.cs.cmu.edu/svn/olympus/example-systems/RoomLine/trunk/Resources/Grammar/GRAMMAR/Generic.gra
Alex
-----Original Message-----
From: Olympus-developers [mailto:olympus-developers-bounces at mailman.srv.cs.cmu.edu] On Behalf Of ???
Sent: Monday, June 01, 2015 11:13 AM
To: olympus-developers
Subject: [Olympus developers 527]: Probem about write grammar file
Dear Developers:
I'm sorry for bothering you, but I have some problem when study about Olympus. I want write a slot which can match any number(not just a single number). Could you tell how to write this slot.
Your sincerelly!
Thomas
More information about the Olympus-developers
mailing list