Hi,

I just have taken a look at the WHISK implementation and noticed that this implementation does not support feature checks. I got confused with the new learners. I assume that you added this functionality yourself? If yes, please think about contributing it ;-)

It's hard to identify the problem without an actual use case.
Can you provide a simple example?
What is your learning configuration?

My first guess would be that Lemma is also a target type. Are there any exceptions (log file) or errors (error view)?

Best,

Peter


Am 31.05.2013 18:36, schrieb Peter Klügl:
Hi,

this should of course not happen at all and can have many different
reasons, most likely in the initialization in TextRuler. I have to take
a look at the implementation and do some testing (will take some time).

Best,

Peter


On 30.05.2013 17:14, Sondes Bannour wrote:
Hello,

I have a problem with Textruler. I am working with Whisk (generic) and I am
trying to learn rules with features like
"Lemma{FEATURE("lemma","consumer")->MARKONCE(MBTO00001402)};" but the
problem is that such rule is not well applyed :

base1: Lemma{FEATURE("lemma","consumer")->MARKONCE(MBTO00001402)};
base2: ALL*?{->MARKONCE(MBTO00001402)} PERIOD;
base1: p=0; n=0 --> laplacian = 1.0
base2: p=1; n=1192 --> laplacian = 0.9991624790619765

The regexp however works:

base1: Lemma{REGEXP("consumer")->MARKONCE(MBTO00001402)};
base2: ALL*?{->MARKONCE(MBTO00001402)} PERIOD;
base1: p=1; n=0 --> laplacian = 0.5
base2: p=1; n=1192 --> laplacian = 0.9991624790619765

The rule Lemma{->MARKONCE(MBTO00001402)}; works too

base1: Lemma{->MARKONCE(MBTO00001402)};
base2: ALL*?{->MARKONCE(MBTO00001402)} PERIOD;
base1: p=1; n=0 --> laplacian = 0.5
base2: p=1; n=1192 --> laplacian = 0.9991624790619765

Any idea about where can be the problem in the textruler code (may be it's
the TextMarkerEngine code)? i am using the textmarker 1.0 but the latest
versions do not seem to solve the problem too.

PS: I tried to test the rule outside the textruler code with the same
engine and using the same textmarker (1.0) and it works.

Cheers,
Sondes


Reply via email to