Hi,
this is an excellent idea!
Regards,
Marcin
W dniu 2013-01-13 10:44, Jaume Ortolà i Font pisze:
> Hi,
>
> I would like to add the isWhitespaceBefore information to the historical
> annotations of the disambiguator, so any problem can be easily spotted
> and fixed. When isWhitespaceBefore=false then an asterisk will be shown
> after the postag: "word[lemma/POS*]". Is this OK for everybody? Some
> JUnit tests have to be corrected. If you agree, I can do it myself.
>
> The code change would be in AnalyzedTokenReadings.java:
>
> @Override
> public String toString() {
> final StringBuilder sb = new StringBuilder();
> sb.append(token);
> sb.append("[");
> for (final AnalyzedToken element : anTokReadings) {
> sb.append(element);
> if (!element.isWhitespaceBefore()) // ADDED LINES
> sb.append("*"); // ADDED LINES
> sb.append(",");
> }
> sb.delete(sb.length() - 1, sb.length());
> sb.append("]");
> return sb.toString();
> }
>
>
> Regards,
> Jaume Ortolà
>
>
>
> ------------------------------------------------------------------------------
> Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
> MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
> with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
> MVPs and experts. ON SALE this month only -- learn more at:
> http://p.sf.net/sfu/learnmore_123012
>
>
>
> _______________________________________________
> Languagetool-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/languagetool-devel
>
------------------------------------------------------------------------------
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. ON SALE this month only -- learn more at:
http://p.sf.net/sfu/learnmore_123012
_______________________________________________
Languagetool-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/languagetool-devel