Add suggestion for issue in LanguageToolStep

Issue #416 resolved
Former user created an issue

Original issue 416 created by @ysavourel on 2014-09-17T14:10:23.000Z:

From original poster:

I'm currently developing some code which uses Okapi pipelines and LanguageToolStep.
The application accepts an xlf file as input, and provides the same xlf file with ITS annotations related to misspellings and quality issues.
Everything works really good, only I noticed that the suggestions that LanguageTool typically provides don't find their way in the final output.
The actual output at the moment is like:

<its:locQualityIssues xmlns:its="http://www.w3.org/2005/11/its" xmlns:okp="okapi-framework:xliff-extensions" version="2.0" xml:id="NC812338D">
<its:locQualityIssue locQualityIssueComment="Possible spelling mistake found" locQualityIssueSeverity="2" locQualityIssueType="misspelling" okp:lqiType="LANGUAGETOOL_ERROR" okp:lqiPos="6 12 -1 -1" okp:lqiSegId="0"/>
</its:locQualityIssues>

While it might be improved with suggestions by LT like:
<its:locQualityIssue locQualityIssueType="misspelling"
locQualityIssueComment="'c'es' is unknown. Could be 'c'est'"
locQualityIssueSeverity="50"/>
So my question would be, any chance that this enhancements might be added to LanguageToolStep?
Thanks a lot, regards
Vincenzo

Original email:
https://groups.google.com/forum/#!topic/okapi-devel/7kmXpORF0ZI

Comments (2)

  1. Former user Account Deleted

    Comment 2. originally posted by @ysavourel on 2014-09-17T15:15:32.000Z:

    There was some existing code looking for suggestion in the LT message field. Now the suggestion(s) are in a separate list of strings.
    I've kept the old code for backward compatibility and added support to get the suggestion list in the annotation comment.
    The change will be in the next snapshot.

  2. Log in to comment