CPWR
From UNL Wiki
(Difference between revisions)
(New page: <b>Composition rules</b> (CPWR) are used to generate compounds out of the base form. == When to use composition rules == Composition rules must be created only in case of [[multiword expr...) |
(→Composition rules in the dictionary) |
||
Line 16: | Line 16: | ||
*As complex structures, such as | *As complex structures, such as | ||
[[sub-NLW][sub-NLW]...[sub-NLW]] {ID} “UW” (ATTR , ..., #01(ATTR, ...), #02(ATTR, ...), ...) < FLG , FRE , PRI >; COMMENTS | [[sub-NLW][sub-NLW]...[sub-NLW]] {ID} “UW” (ATTR , ..., #01(ATTR, ...), #02(ATTR, ...), ...) < FLG , FRE , PRI >; COMMENTS | ||
− | **For further information on complex structures inside the dictionary, refer to [[Dictionary Specs#Complex]] | + | **For further information on complex structures inside the dictionary, refer to [[Dictionary Specs#Complex structures as NLW*]] |
*As simple structures, such as | *As simple structures, such as | ||
[NLW] {ID} “UW” (ATTR , ..., BF=<BASE FORM>, CPWR=MTW(<COMPOSITION RULE>) ) < FLG , FRE , PRI >; COMMENTS | [NLW] {ID} “UW” (ATTR , ..., BF=<BASE FORM>, CPWR=MTW(<COMPOSITION RULE>) ) < FLG , FRE , PRI >; COMMENTS |
Revision as of 19:20, 8 December 2011
Composition rules (CPWR) are used to generate compounds out of the base form.
Contents |
When to use composition rules
Composition rules must be created only in case of multiword expressions with the following features:
When not to use composition rules
How to create a composition rule
Examples of composition rules
Composition rules in the dictionary
In the UNLarium frameword, composition rules may be expressed in two different formats:
- As complex structures, such as
[[sub-NLW][sub-NLW]...[sub-NLW]] {ID} “UW” (ATTR , ..., #01(ATTR, ...), #02(ATTR, ...), ...) < FLG , FRE , PRI >; COMMENTS
- For further information on complex structures inside the dictionary, refer to Dictionary Specs#Complex structures as NLW*
- As simple structures, such as
[NLW] {ID} “UW” (ATTR , ..., BF=<BASE FORM>, CPWR=MTW(<COMPOSITION RULE>) ) < FLG , FRE , PRI >; COMMENTS
- Where <COMPOSITION RULE> is the rule or set of rules used to form the lemma out of the base form, and <BASE FORM> is the base form
Example of dictionary entries containing composition rules
- [[bring] [back]] {12343} "202078294" (pos=VER, #01(IFX(ET0:=4>"ought")), #02(pos=PRE)) <eng, 0, 0>;
- [bring back] {12343} "202078294" (pos=VER, BF=bring, CPWR=MTW(VA([back],A,M0);)) <eng, 0, 0>;