computerline1z / okapi

Automatically exported from code.google.com/p/okapi
0 stars 0 forks source link

Add suggestion for issue in LanguageToolStep #416

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
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

Original issue reported on code.google.com by yves.sav...@gmail.com on 17 Sep 2014 at 2:10

GoogleCodeExporter commented 9 years ago

Original comment by yves.sav...@gmail.com on 17 Sep 2014 at 3:13

GoogleCodeExporter commented 9 years ago
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.

Original comment by yves.sav...@gmail.com on 17 Sep 2014 at 3:15