lucenenet-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Digy (Updated) (JIRA)" <j...@apache.org>
Subject [Lucene.Net] [jira] [Updated] (LUCENENET-459) Italian stemmer (from SnowballAnalyzer) does not work
Date Thu, 22 Dec 2011 22:33:30 GMT

     [ https://issues.apache.org/jira/browse/LUCENENET-459?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Digy updated LUCENENET-459:
---------------------------

    Affects Version/s: Lucene.Net 2.9.4g
        Fix Version/s: Lucene.Net 2.9.4g
    
> Italian stemmer (from SnowballAnalyzer) does not work
> -----------------------------------------------------
>
>                 Key: LUCENENET-459
>                 URL: https://issues.apache.org/jira/browse/LUCENENET-459
>             Project: Lucene.Net
>          Issue Type: Bug
>          Components: Lucene.Net Contrib
>    Affects Versions: Lucene.Net 2.9.2, Lucene.Net 2.9.4, Lucene.Net 2.9.4g
>            Reporter: Santiago M. Mola
>             Fix For: Lucene.Net 2.9.4g
>
>
> Italian stemmer does not work.
> Consider this code:
> 			var englishAnalyzer = new SnowballAnalyzer("English");
> 			var tk = englishAnalyzer.TokenStream("text", new StringReader("horses"));
> 			var ta = (TermAttribute)tk.GetAttribute(typeof(TermAttribute));
> 			tk.IncrementToken();
> 			Console.WriteLine("English stemmer: horses -> " + ta.Term());
> 			
> 			var italianAnalyzer = new SnowballAnalyzer("Italian");
> 			tk = italianAnalyzer.TokenStream("text", new StringReader("abbandonata"));
> 			ta = (TermAttribute)tk.GetAttribute(typeof(TermAttribute));
> 			tk.IncrementToken();
> 			Console.WriteLine("Italian stemmer: abbandonata -> " + ta.Term());
> It outputs:
>     English stemmer: horses -> hors
>     Italian stemmer: abbandonata -> abbandonata
> While Java Lucene 2.9.4 outputs:
>     English stemmer: horses -> hors
>     Italian stemmer: abbandonata -> abbandon

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message