Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [smila-user] Attributes and annotations

On Tue, May 18, 2010 at 3:55 PM,  <daniel.stucky@xxxxxxxxxxxxx> wrote:
> 2) If you want to set the Annotation on the Attribute you can do this via the Blackboard methods, but you have to use a special Path (this is rather tricky):
>
>    Annotation ann = getBlackboard().createAnnotation(id);
>    ann.addAnonValue("emotion value");
>    Path ap = new Path();
>    ap.add("Lyrics", PathStep.ATTRIBUTE_ANNOTATION);
>    getBlackboard().addAnnotation(id, ap, "Emotion", ann);

Thanks, I got it to work with 'new Path("Lyrics[-1]")' and I was
wondering if this was the right thing to do.

-- 
Giorgio Sironi
Piccolo Principe & Web Engineer
http://giorgiosironi.blogspot.com
http://twitter.com/giorgiosironi


Back to the top