Grammar
From UNL Wiki
(Difference between revisions)
(→Types) |
(→Types) |
||
Line 3: | Line 3: | ||
== Types == | == Types == | ||
In the UNL<sup>framework</sup>, we distinguish between transformation and disambiguation grammars: | In the UNL<sup>framework</sup>, we distinguish between transformation and disambiguation grammars: | ||
− | *'''Transformation Grammar''', or T-Grammar, is the set of T- | + | *'''Transformation Grammar''', or T-Grammar, is the set of [[T-rule]]s, which are used to transform structures |
− | *'''Disambiguation Grammar''', or D-Grammar, is the set of D- | + | *'''Disambiguation Grammar''', or D-Grammar, is the set of [[D-rule]]s, which are used to improve the performance of the T-rules |
The syntax and behavior of T-rules and D-rules are defined in the [[Grammar Specs]]. | The syntax and behavior of T-rules and D-rules are defined in the [[Grammar Specs]]. | ||
Revision as of 20:44, 17 September 2012
In the UNL framework, a grammar is a set of rules that are used to generate UNL out of natural language, and natural language out of UNL.
Types
In the UNLframework, we distinguish between transformation and disambiguation grammars:
- Transformation Grammar, or T-Grammar, is the set of T-rules, which are used to transform structures
- Disambiguation Grammar, or D-Grammar, is the set of D-rules, which are used to improve the performance of the T-rules
The syntax and behavior of T-rules and D-rules are defined in the Grammar Specs.
Direction
In the UNLframework, we distinguish between analysis and generation grammars:
- The UNL-NL (Generation) Grammar is used to generate natural language out of UNL
- The NL-UNL (Analysis) Grammar is used to generate UNL out of natural language