#188 SRX rules are not loaded properly when newer version of Xerces is in classpath.

2.1
closed-fixed
nobody
None
7
2013-09-12
2013-08-30
No

I'm using languagetool to split text to sentences in project that have xercesImpl 2.9.1 in classpath and if you have some SAXParserFactory in classpath it is used instead of one embedded in Java release (SAXParserFactory.newInstance() will return it).

With this version of Xerces all rules loaded from segment.srx file have a \n symbol in the end what makes them unusable (regexes do not match sentences).

I've done a quick and ugly fix in my project by trimming each rule after it is loaded
(Srx2SaxParser.endElement method).

Discussion

  • Marek Piechut

    Marek Piechut - 2013-08-30

    Sorry, it's rather bug in segment than in languagetool, already submitted issue report to segment.

     
  • Daniel Naber

    Daniel Naber - 2013-09-12

    This should now be fixed as we have updated to segment 1.4.2.

     
  • Daniel Naber

    Daniel Naber - 2013-09-12
    • status: open --> closed-fixed
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks