[pet] handling of unknown lexical items

Stephan Oepen oe at ifi.uio.no
Wed Oct 26 21:38:10 CEST 2011


hi john,

to enable the most accurate parse ranking method we have available (and to make things more efficient), try turning on selective unpacking: please add -packing -nsolutions=1 to the command line.  for background, please see Zhang et al. in IWPT 2007.

the output you get from the command line is intended for debugging purposes primarily; it is similar to what is described on the ItsdbDerivations page on the wiki, but providing some additional (internal) information and dropping some.  for all i know, that particular format is undocumented (and could in principle change in the future).

best, oe


On 26. okt. 2011, at 20:48, John Stewart <cane.cubo at gmail.com> wrote:

> Hello,
> 
> I am trying to reproduce the behaviour of the online demo using the
> command-line PET + ERG system, but having various troubles.  One is
> with unknown words.  For  the sentence
> 
> (1)  ugo kissed pilar
> 
> The online demo returns _ugo/nn_u_unknown and _pilar/nn_u_unknown ,
> which is correct.
> 
> Using the command-line tool as follows:
> 
>> cheap -default-les=all -verbose=3 -mrs english.grm
> 
> I get the surprising output:
> 
> (1011 np_frg_c 0 0 3 [root_frag]
>  (1007 hdn_bnp_c 0 0 3
>    (1003 n-hdn_cpd_c 0 0 3
>      (5 gen_generic_noun/n_-_mc-ns-g_le 0 0 1 []
>        (1 "ugo" 0 0 1 <0:1>))
>      (1000 hdn-n_prnth_c 0 1 3
>        (610 generic_pl_noun/n_-_c-pl-unk_le 0 1 2 []
>          (2 "kissed" 0 1 2 <1:2>))
>        (865 generic_pl_noun_ne/n_-_c-pl-gen_le 0 2 3 []
>          (3 "pilar" 0 2 3 <2:3>))))))
> 
> So an NP fragment.  Incidentally I'm unsure how to read the leaf
> types, as the format, with "/", seems to not match the templates
> documented at http://moin.delph-in.net/ErgLeTypes  But in any case,
> plural nouns are an incorrect default (I get worse results with
> -default-les=traditional).  Are there cheap switches that will yield
> the better output given by the online demo?
> 
> Thanks for any suggestions.
> 
> jds




More information about the pet mailing list