Simply question about lists

9 views
Skip to first unread message

Angel Conde

unread,
Apr 19, 2012, 6:50:13 AM4/19/12
to constrain...@googlegroups.com
Hello, 
I'm triying to make some list for mapping and I can't make them to work. It's a very simple use of the tool but it will helps me a lot to make lists to work. 
This is de input. 
"<La>" 
"el" DA0FS0 null 
"lo" PP3FSA00 null 
"la" NCMS000 null 
"<Java>" 
"java" NP00000 null @ONT-TOPIC @TOPIC-Java 
"<es>" 
"ser" VSIP3S0 null 
"<un>" 
"uno" DI0MS0 null 
"1" Z null 
"<planeta>" 
"planeta" NCMS000 null 
"<.>" 
"." Fp null 
 
I try to map with this rule and this list. 

LIST TOBE = es; (I tried to put here <es> "<es>" "es" ... etc) but doesn't work 

MAP:DEF-2 (&DEF) (@ONT-TOPIC ) IF (1 (TOBE));      (here I tried also to put before TOBE $$)


Thanks for your help in advance, 



Tino Didriksen

unread,
Apr 19, 2012, 7:20:12 AM4/19/12
to constrain...@googlegroups.com
G'day...

I would highly recommend writing some converter from those positional tags to something useful.

However, your actual problem is most likely twofold:
1) The reading is already mapped. MAP rules by default will not be able to touch readings that have tags starting with @. You can change this with the cmdline flag --prefix, in your case --prefix '&'

2) You have () too many. To refer to the set TOBE, you cannot have (TOBE).
(1 TOBE) asks that the next cohort matches the set TOBE.
(1 (TOBE)) asks that the next cohort matches the tag TOBE.

-- Tino Didriksen
CG-3 Developer

lene antonsen

unread,
Apr 19, 2012, 7:14:19 AM4/19/12
to constrain...@googlegroups.com
Hello!

Try

LIST TOBE = "ser" ;

- Lene

--
You received this message because you are subscribed to the Google Groups "Constraint Grammar" group.
To view this discussion on the web visit https://groups.google.com/d/msg/constraint-grammar/-/-f3dmKhCcF4J.
To post to this group, send email to constrain...@googlegroups.com.
To unsubscribe from this group, send email to constraint-gram...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/constraint-grammar?hl=en.

Reply all
Reply to author
Forward
0 new messages