Because the annotation should extract most of the unstructured information, into a structured object. So if there is optionally such an information like an anatomic side, I would want to add this information to my structured object.
----- Ursprüngliche Mail ----- Von: "Wolfgang Laun" <wolfgang.l...@gmail.com> An: "Rules Users List" <rules-users@lists.jboss.org> Gesendet: Montag, 14. Januar 2013 12:22:37 Betreff: Re: [rules-users] Hello and my first question I take "optional" to mean "don't care whether it is there or not" - so why don't you simply omit this condition? -W On 14/01/2013, Bojan Janisch <bojan.jani...@scai.fraunhofer.de> wrote: > Hello everybody, > > this is my first post and also my first question to you. > I've searched the net for quite some hours now, but don't get any > information regarding optionally conditions. > > I'm using drools to annotate some textobjects and I'm stucking with the > following rule: > > When there are two named entities, one body side and one anatomy in a text > (they're defined earlier by a textannotating system, so I'm working on > annotated objects) and there is a optionally anatomic side (it contains > generally something like "lateral" oder "medial" and so on), then generate > me a new annotation. > > So up to now I'm on this state: > > Rule "Anatomic Side" > > when > > $NE1 : NE(Type.contains("body")) > $NE2 : NE(Type.contains("anatomy")) > > //So here starts the problem > [$NE3 : NE(Type.contains("anatomic"))] > > then > ... > > How can I set a condition as optionally or is there no such way? > > Thanks everyone to who reads this. > Janisch > _______________________________________________ > rules-users mailing list > rules-users@lists.jboss.org > https://lists.jboss.org/mailman/listinfo/rules-users > _______________________________________________ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users _______________________________________________ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users