evalTerm error

25 views
Skip to first unread message

Shafqat Virk

unread,
May 15, 2012, 6:05:20 AM5/15/12
to gf-...@googlegroups.com
While compiling a lexicon, I get the following error, What is wrong in there? 
generating PMCFG 
+ a1_A 1 (1,1)
+ a_N 1 (1,1)
+ a_d__Adv 1 (1,1)
+ a_ok_A 1 (1,1)
+ a_one_A 1 (1,1)
+ a_road_N 1 (1,1)
---------
--------
accentual_A 1 (1,1)
+ accentuate_V 1evalTerm ("दे" + ("जोर" ++ "दिया"))

I have the following linearization for the accentuage_V. 

lin accentuate_V = mkV "जोर देना" ;

it appears in many of them, so can't keep going by commenting it.

/BR

Aarne Ranta

unread,
May 15, 2012, 7:50:52 AM5/15/12
to gf-...@googlegroups.com
"Just" a missing case in partial evaluation - a deep but simple bug, in other words. Now fixed in darcs. 

Thanks for pointing this out. It's incredible that the bug hasn't shown up before!

  Aarne.

Shafqat Virk

unread,
May 15, 2012, 8:12:04 AM5/15/12
to gf-...@googlegroups.com
Thanks, its working now. Another thing while downloading GF from darcs with the following command
darcs get --partial --set-scripts-executable http://code.haskell.org/gf/
--partial parameter is not working, it gives unrecognized parameter error.
BR

Thomas Hallgren

unread,
May 15, 2012, 8:36:38 AM5/15/12
to gf-...@googlegroups.com
"darcs get --partial" was replaced with "darcs get --lazy" when darcs 2.0.0 was released in April 2008.

(Also, if you already have a copy of GF, you can use "darcs pull" to get the latest updates instead of getting a new copy with "darcs get"...)

Thomas H

christina

unread,
Jun 27, 2012, 9:47:08 AM6/27/12
to gf-...@googlegroups.com
I have a (maybe unrelated) problem: I want to access the string of a CN, something like this: 

    WhatAbout c = { s = variants { "was ist mit " + c.s ! Strong ! Pl ! Acc ; ... } };

Where Strong, Pl and Acc are from ResGer, and c is linearized as a CN, which was constructed using mkCN : N -> CN. 
When compiling, I get: 

- compiling /home/QueryGer.gf... evalTerm ("mit" + Class_0.s ! Strong ! Pl ! Acc) 

What does it mean? And maybe it's not the right way to extract the string? 
When I do the same thing for English, i.e.:

     WhatAbout c = { s = variants { "what about " + c.s ! Pl ! Nom; ... } };

I get a conflict (ConstructorsEng.mkNP, ResEng.mkNP) and the same reaction: evalTerm ("about" + Class_0.s ! Pl ! Nom)

Best regards,
Christina 

Krasimir Angelov

unread,
Jun 27, 2012, 10:22:54 AM6/27/12
to gf-...@googlegroups.com
If you use ++ instead of + then it should compile. You cannot glue
strings from runtime variables.


2012/6/27 christina <f06...@gmail.com>:

christina

unread,
Jun 27, 2012, 11:50:47 AM6/27/12
to gf-...@googlegroups.com

Ok, that was a stupid mistake. Thanks! 
(Maybe I should stop programming in Java ;)
Reply all
Reply to author
Forward
0 new messages