Bugs item #3600995, was opened at 2013-01-15 08:42 Message generated for change (Tracker Item Submitted) made by mikeunwalla 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: Open Resolution: None 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 ->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>] ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=655717&aid=3600995&group_id=110216 ------------------------------------------------------------------------------ Master HTML5, CSS3, ASP.NET, MVC, AJAX, Knockout.js, Web API and much more. Get web development skills now with LearnDevNow - 350+ hours of step-by-step video tutorials by Microsoft MVPs and experts. SALE $99.99 this month only -- learn more at: http://p.sf.net/sfu/learnmore_122812 _______________________________________________ Languagetool-commits mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/languagetool-commits
