Bugs item #3600995, was opened at 2013-01-15 08:42
Message generated for change (Comment added) made by milek_pl
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=655717&aid=3600995&group_id=110216

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: 2.0
>Status: Closed
Resolution: Fixed
Priority: 5
Private: No
Submitted By: MikeUnwalla (mikeunwalla)
Assigned to: Nobody/Anonymous (nobody)
Summary: Testrules does not report an incorrect ‘untouched’ example

Initial Comment:
See 'Testing disambiguation rules' on 
http://wiki.languagetool.org/developing-a-disambiguator

When an untouched example is incorrect, Testrules usually gives this error 
message:
Exception in thread "main" junit.framework.AssertionFailedError: The untouched 
example ([text]) for rule [id] was touched!

However, if the disambiguation action= add, testrules does not report an 
incorrect ‘untouched’ example. For example, see the following rule.

    <rule name="WDT/WP -&gt;WDT" id="WP_WDT">
        <pattern>
            <marker>
                <and>
                    <token postag="WP"></token>
                    <token postag="WDT"></token>
                </and>
            </marker>
            <token postag_regexp="yes" postag="NN|NN:UN"></token>
        </pattern>
        <disambig action="add"><wd pos="ANEWPOS"/></disambig>
        <example type="ambiguous" inputform="What[what/UH,what/WDT,what/WP]" 
outputform="What[What/ANEWPOS,what/UH,what/WDT,what/WP]"><marker>What</marker> 
kind of bread is this?</example>
        <example type="untouched">What are you doing?</example>
        <example type="untouched">What kind of bread is this?</example>
    </rule>

The second ‘untouched’ example is not correct (the pos was added), but 
testrules does not give a message. The tagged text from the GUI shows that the 
pos was added:
<S> What[what/UH, what/WDT, what/WP, What/ANEWPOS] kind[kind/NN] of[of/IN] 
bread[bread/NN:U, bread/VB, bread/VBP] is[be/VBZ] this[this/DT]?[</S>] 


----------------------------------------------------------------------

>Comment By: Marcin Miłkowski (milek_pl)
Date: 2013-03-07 04:24

Message:
Closed.

----------------------------------------------------------------------

Comment By: Marcin Miłkowski (milek_pl)
Date: 2013-03-07 03:17

Message:
Thanks for reporting this! Fixed in the current SVN.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=655717&aid=3600995&group_id=110216

------------------------------------------------------------------------------
Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester  
Wave(TM): Endpoint Security, Q1 2013 and "remains a good choice" in the  
endpoint security space. For insight on selecting the right partner to 
tackle endpoint security challenges, access the full report. 
http://p.sf.net/sfu/symantec-dev2dev
_______________________________________________
Languagetool-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/languagetool-commits

Reply via email to