Optional internal testing of segmentation rules
Original [issue 62](https://code.google.com/p/okapi/issues/detail?id=62) created by marcin.milkow... on 2009-05-02T15:54:20.000Z:
As Ratel already has example text, it would be easy to implement internal quality "unit" tests by adding a special tag that shows the expected break:
Mr. Jekyll and Mr. Hyde went for a walk. <break/>They told Gen. J. Sherman to feed his dog at 5 a.m. and went to bed. <break/>
I can implement this myself in my LanguageTool JUnit tests but it would be nice to have during writing the rules.
Another kind of internal testing would be highlighting the rules that were matched for a given break. This is not so trivial to have but it would make debugging easier. I really needed this yesterday :)
Comments (3)
-
Account Deleted -
We have the repo “https://bitbucket.org/okapiframework/srx-repository/src/master/“ with code to help unit test. This code could be moved to okapi proper.
-
- changed status to wontfix
- Log in to comment
Comment [1.](https://code.google.com/p/okapi/issues/detail?id=62#c1) originally posted by @ysavourel on 2009-05-02T22:31:21.000Z: