Re: Rule not working as expected

2014-08-19 Thread Daniel Naber
On 2014-08-19 15:39, R.J. Baars wrote:

 I discovered that the rule below is not working very well.
 It look like 'skip' also skips over sentence boundaries.

No, that shouldn't be possible. Maybe sentence detection is broken? What 
sentence does this match that it shouldn't?

Regards
  Daniel


--
___
Languagetool-devel mailing list
Languagetool-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/languagetool-devel


Re: Rule not working as expected

2014-08-19 Thread Dominique Pellé
R.J. Baars r.j.ba...@xs4all.nl wrote:

 I discovered that the rule below is not working very well.
 It look like 'skip' also skips over sentence boundaries.

 Is that intentional? Or is something else wrong?
 In case it is intentional, is there an option to forbid that?

 Ruud

 rule id=nr738 name=duur kost
 pattern
 token skip=4duur/token
 tokenkost/token
 /pattern
 messageU bedoelt suggestionis duur/suggestion of suggestionkost
 veel/suggestion./message
 shortIs duur, kost veel/short
 example type=incorrectWeet je niet hoe markerduur die auto wel niet
 kost/marker?/example
 example type=correctWeet je niet hoe markerduur die auto wel niet
 is/marker?/example
 /rule


Hi Ruud,

You can run with the -v option (for verbose) to see what's
going on. It should then show each sentence separately, the
tokenization, the POS tags, the lemma, which unification rules
match etc.

Skip should not span multiple sentences.
In my experience, skip=... with a large numbers (or
worse with -1) can easily produces false positives.

Regards
Dominique

--
___
Languagetool-devel mailing list
Languagetool-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/languagetool-devel


Re: Rule not working as expected

2014-08-19 Thread R.J. Baars

THanks, I will check it out.

The rule is not functioning very well at all. I commented it out and put
it on the list of items to do.

Ruud

 R.J. Baars r.j.ba...@xs4all.nl wrote:

 I discovered that the rule below is not working very well.
 It look like 'skip' also skips over sentence boundaries.

 Is that intentional? Or is something else wrong?
 In case it is intentional, is there an option to forbid that?

 Ruud

 rule id=nr738 name=duur kost
 pattern
 token skip=4duur/token
 tokenkost/token
 /pattern
 messageU bedoelt suggestionis duur/suggestion of suggestionkost
 veel/suggestion./message
 shortIs duur, kost veel/short
 example type=incorrectWeet je niet hoe markerduur die auto wel
 niet
 kost/marker?/example
 example type=correctWeet je niet hoe markerduur die auto wel niet
 is/marker?/example
 /rule


 Hi Ruud,

 You can run with the -v option (for verbose) to see what's
 going on. It should then show each sentence separately, the
 tokenization, the POS tags, the lemma, which unification rules
 match etc.

 Skip should not span multiple sentences.
 In my experience, skip=... with a large numbers (or
 worse with -1) can easily produces false positives.

 Regards
 Dominique

 --
 ___
 Languagetool-devel mailing list
 Languagetool-devel@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/languagetool-devel




--
___
Languagetool-devel mailing list
Languagetool-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/languagetool-devel