[itsdb] How can I annotate with Ace and Pet?

Tore Bruland torebrul at idi.ntnu.no
Thu Dec 13 13:59:55 CET 2012


Thanks Stephan.

Yes, I tried with Pet also.

I have switched to Pet and I added the same LKB grammar and that was it.
After annotation, I trained the profile and now I get scores in all the right places:
 

(2692 head-subject-rule 7.114069 0 5 
 (197 sg_def_m_final-full_irule 1.061898 0 1 
  (157 sg-masc-def-noun-lxm-lrule 0.637139 0 1 
   (1 gutt_masc-reganim 0.212379 0 1 
    ("gutten" 389 "token ")))) 
 (2250 head-verb-comp-rule 5.243569 1 5 
  (192 pret-nonfstr_infl_rule 1.648368 1 2 
   (7 selge_tv 0.824184 1 2 
    ("solgte" 506 "token "))) 
  (2235 pp-mod-defbare-n-index-sit-rule 2.269354 2 5 
   (222 sg_def_m_final-full_irule 1.583447 2 3 
    (194 sg-masc-def-noun-lxm-lrule 1.214837 2 3 
     (8 buss_masc-dirnoun 0.386444 2 3 
      ("bussen" 623 "token ")))) 
   (1772 head-prep-comp-rule 0.175914 3 5 
    (24 til_poss -0.120760 3 4 
     ("til" 27 "token ")) 
    (223 sg_def_m_final-full_irule 0.077646 4 5 
     (196 sg-masc-def-noun-lxm-lrule -0.031869 4 5 
      (30 mann_masc-reganim -0.000000 4 5 
       ("mannen" 0 "token "))))))))


> -----Original Message-----
> From: stephan.oepen at gmail.com [mailto:stephan.oepen at gmail.com] On
> Behalf Of Stephan Oepen
> Sent: 13. desember 2012 13:23
> To: Tore Bruland
> Cc: itsdb at delph-in.net
> Subject: Re: [itsdb] How can I annotate with Ace and Pet?
> 
> have you tried parsing with PET?  that is by far the most common
> current way of creating profiles for treebanking with [incr tsdb()].
> 
> also, to treebank, you need to load the same grammar used when parsing
> into the LKB (and [incr tsdb()]) environment, because the profile only
> records the derivation (recipe), but to treebank these derivations are
> reconstructured, i.e. lexical entries and rules are unified together in
> exactly the same configuration as determined by the derivation---thus
> arriving at the exact same AVM as there was on the parsing result(s).
> 
> oe
> 
> 
> On Thu, Dec 13, 2012 at 1:03 PM, Tore Bruland <torebrul at idi.ntnu.no>
> wrote:
> > I can annotate with LKB, but it doesn't work with Ace and Pet ( ).
> > Logon is stared from Emacs with alt-m-x logon.
> > I import test-items into a database (Podium), and then I process
> them,
> > but when I start Trees->Annotate, I get an error message from each
> > test-item and the annotation process does not start.
> >
> > The error:
> >
> > [10:58:04] browse-tree(): `suite_2_ace' --- item # 1 [10:58:04]
> > browse-tree(): retrieved item # 1 (5 parses).
> > [10:58:04] browse-tree(): retrieved 0 tree records.
> > [10:58:04] browse-tree(): reconstructed 0 edges.
> > [10:58:04] browse-tree(): retrieved 0 decisions.
> > browse-tree(): failed to reconstruct item # 1 (parse # 1).
> >
> > My cpu definition:
> >      (make-cpu
> >       :host (short-site-name)
> >       :spawn "/home/tore/software/ace-0.9.10pre4/ace"
> >       :options '("-t" "-g"
> > "/home/tore/software/ace-0.9.10pre4/norsource.dat")
> >       :class :no_ace_p :grammar "norsource" :name "norsource"
> >       :task '(:parse)
> >       :wait 600
> >      )
> >
> > I start the cpu with:
> > (tsdb::tsdb :cpu :no_ace_p :file "tsdb_no_ace_p_log.txt")
> >
> >
> 
> 
> 
> --
> +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
> ++++++++
> +++ Universitetet i Oslo (IFI); Boks 1080 Blindern; 0316 Oslo; (+47)
> 2284 0125
> +++    --- oe at ifi.uio.no; stephan at oepen.net; http://www.emmtee.net/oe/
> +++ ---
> +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
> ++++++++




More information about the itsdb mailing list