W dniu 2013-01-13 13:05, Jaume Ortolà i Font pisze:
> Done.
>
> One more thing. The first word of a sentence (the first token after
> SENT_START) usually (always?) has isWhitespaceBefore=FALSE. Could we set
> it to TRUE? That way I think I would have to write less grammar and
> disambiguation rules.

Well, actually, I'm not sure, it's probably not set anywhere. But maybe 
we could make it even more sensible: if there was no space or anything 
like the hard return at the end of the previous sentence, then it should 
have isWhitespaceBefore=false; otherwise "true". Though I don't see much 
use for this right now, I admit.

But I think this is more intuitive to make it correspond to the 
preceding token even if it requires a bit more work. Unfortunately, in 
LO it might be less sensible as the order of sentences sent to LT is not 
guaranteed to be preserved (i.e., it may be quite different than in the 
document).

Best,
Marcin


> Best,
> Jaume
>
>
> 2013/1/13 Marcin Miłkowski <list-addr...@wp.pl <mailto:list-addr...@wp.pl>>
>
>     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 <http://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
>      > Languagetool-devel@lists.sourceforge.net
>     <mailto:Languagetool-devel@lists.sourceforge.net>
>      > https://lists.sourceforge.net/lists/listinfo/languagetool-devel
>      >
>
>
>     
> ------------------------------------------------------------------------------
>     Master Visual Studio, SharePoint, SQL, ASP.NET <http://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
>     Languagetool-devel@lists.sourceforge.net
>     <mailto:Languagetool-devel@lists.sourceforge.net>
>     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
> Languagetool-devel@lists.sourceforge.net
> 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
Languagetool-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/languagetool-devel

Reply via email to