Am 31.05.2017 um 13:26 schrieb Sumit Madan:
> Am 31.05.2017 um 09:59 schrieb Peter Klügl:
>> Hi,
>
> Hi Peter,
>
>> Am 30.05.2017 um 19:35 schrieb Sumit Madan:
>>> We were not able to access the annotation within the BLOCK.
>>>
>>> ###
>>> STRING s;
>>> BOOLEAN a ;
>>>
>>> // This is not working for us:
>>> BLOCK(forEACH) Lemma{}{
>>> Lemma{->MATCHEDTEXT(s), ASSIGN(a,contains(s,"er"))};
>>> Lemma{a ->Test1};
>>> }
>>>
>>> // This is working:
>>> BLOCK(forEACH) Lemma{}{
>>> W{->MATCHEDTEXT(s), ASSIGN(a,contains(s,"er"))};
>>> W{a ->Test2};
>>> }
>>>
>>> // This is also working:
>>> BLOCK(forEACH) Lemma{}{
>>> Document{->MATCHEDTEXT(s), ASSIGN(a,contains(s,"er"))};
>>> Document{a ->Test3};
>>> }
>>> ###
>>>
>> All three examples should work. Which ruta version do you use? It looks
>> like a bug.
>
> Lisa is testing again and will get back to you.
We tested it again and can confirm the following:
###
STRING s;
BOOLEAN a ;
// This is not working:
BLOCK(forEACH1) Lemma{} { // Matches a lot
Lemma{->MATCHEDTEXT(s), ASSIGN(a,contains(s,"er"))}; // Matches 0
Lemma{a ->Test1};
}
// This is not working:
BLOCK(forEACH2) Lemma{} { // Matches a lot
Lemma{contains(Lemma.ct, "er") -> MARK(Test2)}; // Matches 0
}
// This is working:
Lemma{contains(Lemma.ct, "er") -> MARK(Test3)}; // Matches 1
// This is working:
BLOCK(forEACH4) Lemma{}{
W{->MATCHEDTEXT(s), ASSIGN(a,contains(s,"er"))}; // Matches 1
W{a ->Test4};
}
// This is also working:
BLOCK(forEACH5) Lemma{}{
Document{->MATCHEDTEXT(s), ASSIGN(a,contains(s,"er"))}; // Matches 1
Document{a ->Test5};
}
###
Is it possible that in a BLOCK only Ruta types are available?
We are using the latest stable version 2.6.0.
--
Mit freundlichem Gruß / Best regards
Sumit Madan, M.Sc.
Wissenschaftlicher Mitarbeiter / Research fellow
Fraunhofer-Institute for Algorithms and Scientific Computing (SCAI)
Department of Bioinformatics
Schloss Birlinghoven
D-53754 Sankt Augustin
Room: C3-242
Tel.: +49 2241 14 2997
Email: sumit.madan@scai.fraunhofer.de
Internet: http://www.scai.fraunhofer.de/
|