You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Jan Høydahl (JIRA)" <ji...@apache.org> on 2011/09/14 14:45:08 UTC

[jira] [Created] (SOLR-2764) Create a Norwegian plural/singular stemmer

Create a Norwegian plural/singular stemmer
------------------------------------------

                 Key: SOLR-2764
                 URL: https://issues.apache.org/jira/browse/SOLR-2764
             Project: Solr
          Issue Type: New Feature
          Components: Schema and Analysis
            Reporter: Jan Høydahl


We need a light-weight stemmer for plural/singlular only in Norwegian

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


[jira] [Commented] (SOLR-2764) Create a NorwegianLightStemmer and NorwegianMinimalStemmer

Posted by "Robert Muir (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SOLR-2764?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13195863#comment-13195863 ] 

Robert Muir commented on SOLR-2764:
-----------------------------------

just some general suggestions:

in a light stemmer, i would be wary of derivational endings. 
it seems in the case of dom/het because its dealing with adj/noun that its
on the edge (maybe ok here), but if possible it would be more ideal to
avoid multiple passes... this is the kind of thing that causes snowball problems.

Can you think of examples for dom/het where the meaning would be changed?

for example: "freedom" is used the same way in english, but stemming this 
to "free" is very lossy, since free has a variety of meanings (such as costs nothing), 
some of which are incompatible with "freedom". This is the danger of stripping
derivational suffixes...

                
> Create a NorwegianLightStemmer and NorwegianMinimalStemmer
> ----------------------------------------------------------
>
>                 Key: SOLR-2764
>                 URL: https://issues.apache.org/jira/browse/SOLR-2764
>             Project: Solr
>          Issue Type: New Feature
>          Components: Schema and Analysis
>            Reporter: Jan Høydahl
>             Fix For: 3.6, 4.0
>
>         Attachments: SOLR-2764.patch, SOLR-2764.patch, SOLR-2764.patch, SOLR-2764.patch
>
>
> We need a simple light-weight stemmer and a minimal stemmer for plural/singlular only in Norwegian

--
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

       

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


[jira] [Assigned] (SOLR-2764) Create a NorwegianLightStemmer and NorwegianMinimalStemmer

Posted by "Jan Høydahl (Assigned JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SOLR-2764?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jan Høydahl reassigned SOLR-2764:
---------------------------------

    Assignee: Jan Høydahl
    
> Create a NorwegianLightStemmer and NorwegianMinimalStemmer
> ----------------------------------------------------------
>
>                 Key: SOLR-2764
>                 URL: https://issues.apache.org/jira/browse/SOLR-2764
>             Project: Solr
>          Issue Type: New Feature
>          Components: Schema and Analysis
>            Reporter: Jan Høydahl
>            Assignee: Jan Høydahl
>             Fix For: 3.6, 4.0
>
>         Attachments: SOLR-2764.patch, SOLR-2764.patch, SOLR-2764.patch, SOLR-2764.patch
>
>
> We need a simple light-weight stemmer and a minimal stemmer for plural/singlular only in Norwegian

--
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

       

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


[jira] [Updated] (SOLR-2764) Create a NorwegianLightStemmer and NorwegianMinimalStemmer

Posted by "Jan Høydahl (Updated JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SOLR-2764?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jan Høydahl updated SOLR-2764:
------------------------------

      Description: We need a simple light-weight stemmer and a minimal stemmer for plural/singlular only in Norwegian  (was: We need a light-weight stemmer for plural/singlular only in Norwegian)
    Fix Version/s: 4.0
                   3.6
          Summary: Create a NorwegianLightStemmer and NorwegianMinimalStemmer  (was: Create a NorwegianLightStemmer)
    
> Create a NorwegianLightStemmer and NorwegianMinimalStemmer
> ----------------------------------------------------------
>
>                 Key: SOLR-2764
>                 URL: https://issues.apache.org/jira/browse/SOLR-2764
>             Project: Solr
>          Issue Type: New Feature
>          Components: Schema and Analysis
>            Reporter: Jan Høydahl
>             Fix For: 3.6, 4.0
>
>         Attachments: SOLR-2764.patch
>
>
> We need a simple light-weight stemmer and a minimal stemmer for plural/singlular only in Norwegian

--
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

       

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


[jira] [Commented] (SOLR-2764) Create a NorwegianLightStemmer and NorwegianMinimalStemmer

Posted by "Jan Høydahl (Commented JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SOLR-2764?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13199227#comment-13199227 ] 

Jan Høydahl commented on SOLR-2764:
-----------------------------------

When looking at words enging in -het and -dom in dictionaries (such as Ooo nb_NO.dic), the base word has the same meaning in the vast majority of cases. But of course there will be exceptions. Take the word "brennhet" (het as in hot), it will be stemmed to "brenn" -> "bren" which is kind of wrong, but then "bren" is not a valid word so it won't cause errors. There may be such cases where the final stem clashes with another word, but not more than the base rules. I.e. there is a Norwegian surname "Brenna" which will be stemmed to "brenn" by the "-a" rule, believing it's a fem.definite ending, and then we get a clash with the verb "brenn" (burn). And the first name "Tore" (boy) or "Tora" (girl) will be stemmed to "Tor" (boy) which is another valid first name...

My hunch is that the -dom/-het rules make more good than wrong. Mainly because in the majority of cases it leads to the base word and the -het/-dom word being stemmed to the same stem in cases where the "-en/-et/-a/-e/-n" rule are applied wrongly. Example:

{noformat}
One pass                       Two passes
forlegen        forleg         forlegen        forleg
forlegenhet     forlegen       forlegenhet     forleg
forlegenheten   forlegen       forlegenheten   forleg
forlegenhetens  forlegen       forlegenhetens  forleg
firkantet       firkant        firkantet       firkant
firkantethet    firkantet      firkantethet    firkant
firkantetheten  firkantet      firkantetheten  firkant
{noformat}

But I think maybe the rules -dommer and -dommen should be removed, because the word dommer (judge) and dommen (the sentence) are both common words valid in word endings. So the word "linjedommer" (linesman) would be stemmed to "linje" (line) which is too aggressive.

I see that it soon gets complicated to try to be clever. Should we go back to the one-pass again for the light stemmer? Christian?
                
> Create a NorwegianLightStemmer and NorwegianMinimalStemmer
> ----------------------------------------------------------
>
>                 Key: SOLR-2764
>                 URL: https://issues.apache.org/jira/browse/SOLR-2764
>             Project: Solr
>          Issue Type: New Feature
>          Components: Schema and Analysis
>            Reporter: Jan Høydahl
>             Fix For: 3.6, 4.0
>
>         Attachments: SOLR-2764.patch, SOLR-2764.patch, SOLR-2764.patch, SOLR-2764.patch
>
>
> We need a simple light-weight stemmer and a minimal stemmer for plural/singlular only in Norwegian

--
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

       

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


[jira] [Commented] (SOLR-2764) Create a NorwegianLightStemmer and NorwegianMinimalStemmer

Posted by "Jan Høydahl (Commented JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SOLR-2764?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13228345#comment-13228345 ] 

Jan Høydahl commented on SOLR-2764:
-----------------------------------

Will try to prepare a new patch for this when time allows, with one-pass.
                
> Create a NorwegianLightStemmer and NorwegianMinimalStemmer
> ----------------------------------------------------------
>
>                 Key: SOLR-2764
>                 URL: https://issues.apache.org/jira/browse/SOLR-2764
>             Project: Solr
>          Issue Type: New Feature
>          Components: Schema and Analysis
>            Reporter: Jan Høydahl
>            Assignee: Jan Høydahl
>             Fix For: 3.6, 4.0
>
>         Attachments: SOLR-2764.patch, SOLR-2764.patch, SOLR-2764.patch, SOLR-2764.patch
>
>
> We need a simple light-weight stemmer and a minimal stemmer for plural/singlular only in Norwegian

--
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

       

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


[jira] [Commented] (SOLR-2764) Create a NorwegianLightStemmer and NorwegianMinimalStemmer

Posted by "Christian Moen (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SOLR-2764?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13195451#comment-13195451 ] 

Christian Moen commented on SOLR-2764:
--------------------------------------

I added a few entries to the tests, including some irregular ones, to validate and illustrate how the stemmer works in these cases.  Jan, looks good to me.  +1
                
> Create a NorwegianLightStemmer and NorwegianMinimalStemmer
> ----------------------------------------------------------
>
>                 Key: SOLR-2764
>                 URL: https://issues.apache.org/jira/browse/SOLR-2764
>             Project: Solr
>          Issue Type: New Feature
>          Components: Schema and Analysis
>            Reporter: Jan Høydahl
>             Fix For: 3.6, 4.0
>
>         Attachments: SOLR-2764.patch, SOLR-2764.patch, SOLR-2764.patch
>
>
> We need a simple light-weight stemmer and a minimal stemmer for plural/singlular only in Norwegian

--
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

       

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


[jira] [Updated] (SOLR-2764) Create a NorwegianLightStemmer

Posted by "Jan Høydahl (Updated JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SOLR-2764?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jan Høydahl updated SOLR-2764:
------------------------------

    Attachment: SOLR-2764.patch

First attempt at a NorwegianLightStemmer, adapted from the Swedish one.

Can someone come up with a larger test corups? Not sure if I got all the rules yet.
                
> Create a NorwegianLightStemmer
> ------------------------------
>
>                 Key: SOLR-2764
>                 URL: https://issues.apache.org/jira/browse/SOLR-2764
>             Project: Solr
>          Issue Type: New Feature
>          Components: Schema and Analysis
>            Reporter: Jan Høydahl
>         Attachments: SOLR-2764.patch
>
>
> We need a light-weight stemmer for plural/singlular only in Norwegian

--
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

       

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


[jira] [Updated] (SOLR-2764) Create a NorwegianLightStemmer

Posted by "Jan Høydahl (Updated JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SOLR-2764?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jan Høydahl updated SOLR-2764:
------------------------------

    Summary: Create a NorwegianLightStemmer  (was: Create a Norwegian plural/singular stemmer)
    
> Create a NorwegianLightStemmer
> ------------------------------
>
>                 Key: SOLR-2764
>                 URL: https://issues.apache.org/jira/browse/SOLR-2764
>             Project: Solr
>          Issue Type: New Feature
>          Components: Schema and Analysis
>            Reporter: Jan Høydahl
>
> We need a light-weight stemmer for plural/singlular only in Norwegian

--
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

       

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


[jira] [Commented] (SOLR-2764) Create a Norwegian plural/singular stemmer

Posted by "Chris Male (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SOLR-2764?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13104479#comment-13104479 ] 

Chris Male commented on SOLR-2764:
----------------------------------

I don't know much about Norwegian, but I think its best to follow the same model as the other light / minimal stemmers.  They are incredibly efficient, targeted and easy to understand.

> Create a Norwegian plural/singular stemmer
> ------------------------------------------
>
>                 Key: SOLR-2764
>                 URL: https://issues.apache.org/jira/browse/SOLR-2764
>             Project: Solr
>          Issue Type: New Feature
>          Components: Schema and Analysis
>            Reporter: Jan Høydahl
>
> We need a light-weight stemmer for plural/singlular only in Norwegian

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


[jira] [Commented] (SOLR-2764) Create a NorwegianLightStemmer

Posted by "Christian Moen (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SOLR-2764?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13194909#comment-13194909 ] 

Christian Moen commented on SOLR-2764:
--------------------------------------

Jan, could you attach {{nolighttestdata.zip}}?  Many thanks.
                
> Create a NorwegianLightStemmer
> ------------------------------
>
>                 Key: SOLR-2764
>                 URL: https://issues.apache.org/jira/browse/SOLR-2764
>             Project: Solr
>          Issue Type: New Feature
>          Components: Schema and Analysis
>            Reporter: Jan Høydahl
>         Attachments: SOLR-2764.patch
>
>
> We need a light-weight stemmer for plural/singlular only in Norwegian

--
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

       

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


[jira] [Updated] (SOLR-2764) Create a NorwegianLightStemmer and NorwegianMinimalStemmer

Posted by "Jan Høydahl (Updated JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SOLR-2764?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jan Høydahl updated SOLR-2764:
------------------------------

    Attachment: SOLR-2764.patch

Updated patch with single-pass -het -dom. Tests adjusted and passes. Think this is ready now.
                
> Create a NorwegianLightStemmer and NorwegianMinimalStemmer
> ----------------------------------------------------------
>
>                 Key: SOLR-2764
>                 URL: https://issues.apache.org/jira/browse/SOLR-2764
>             Project: Solr
>          Issue Type: New Feature
>          Components: Schema and Analysis
>            Reporter: Jan Høydahl
>            Assignee: Jan Høydahl
>             Fix For: 3.6, 4.0
>
>         Attachments: SOLR-2764.patch, SOLR-2764.patch, SOLR-2764.patch, SOLR-2764.patch, SOLR-2764.patch
>
>
> We need a simple light-weight stemmer and a minimal stemmer for plural/singlular only in Norwegian

--
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

       

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


[jira] [Updated] (SOLR-2764) Create a NorwegianLightStemmer and NorwegianMinimalStemmer

Posted by "Jan Høydahl (Updated JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SOLR-2764?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jan Høydahl updated SOLR-2764:
------------------------------

    Attachment: SOLR-2764.patch

Thanks Christian. I further refined stuff:

- For MinimalStemmer, we now do two-pass removal for the -dom and -het endings. This means that the word kristendom will first be stemmed to kristen, and then all the general rules apply so it will be further stemmed to krist. The effect of this is that both "kristen,kristendom,kristendommen,kristendommens" will all be stemmed to "krist" (due to in this case incorrect interpretation of -en as plural ending), but when stopping at -dom removal, kristendom would not match inflections of kristen.

What do you think, is this a reasonable improvement or could there be side effects? I've not added these rules to the MinimalStemmer, to keep it simpler.
                
> Create a NorwegianLightStemmer and NorwegianMinimalStemmer
> ----------------------------------------------------------
>
>                 Key: SOLR-2764
>                 URL: https://issues.apache.org/jira/browse/SOLR-2764
>             Project: Solr
>          Issue Type: New Feature
>          Components: Schema and Analysis
>            Reporter: Jan Høydahl
>             Fix For: 3.6, 4.0
>
>         Attachments: SOLR-2764.patch, SOLR-2764.patch, SOLR-2764.patch, SOLR-2764.patch
>
>
> We need a simple light-weight stemmer and a minimal stemmer for plural/singlular only in Norwegian

--
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

       

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


[jira] [Commented] (SOLR-2764) Create a NorwegianLightStemmer

Posted by "Robert Muir (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SOLR-2764?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13194874#comment-13194874 ] 

Robert Muir commented on SOLR-2764:
-----------------------------------

Looks nice to me actually. I can't tell from the test data what you are using already (binary file),
but a few suggestions for testing (this was the process I used before):

* the existing actual+expected testdata for the light stemmers were generated by running the C implementations against snowball vocabulary sets, 
I took the vocabulary files from snowball (the voc.txt in TestSnowballVocabData.zip), and ran the original implementations over them 
and created expected output. This is just a broad check that our implementation does the same thing as the original C one.
I'm not sure how great of a vocabulary set that is for norwegian though.

* in this case, you don't actually have an existing evaluated impl you are trying to conform to, so this test is not so useful,
except to check for PorterStemmer-type JRE crashes and to ensure any future refactorings aren't changing the algorithm (breaking index back compat).

Personally at a glance this looks pretty conservative and nice, but I think since there is no published algorithm to refer to, it might be nice
to add some notes to the Stemmer's java file describing some high level stuff, and also some individual tests that are just examples showing what it does.

Take a look at Latvian (lv) for an example. In this case the algorithm is not exactly what was published in the referred phd thesis,
I did actually implement the original algorithm but my tests found it to be extremely aggressive... so its similar to your case I think.

                
> Create a NorwegianLightStemmer
> ------------------------------
>
>                 Key: SOLR-2764
>                 URL: https://issues.apache.org/jira/browse/SOLR-2764
>             Project: Solr
>          Issue Type: New Feature
>          Components: Schema and Analysis
>            Reporter: Jan Høydahl
>         Attachments: SOLR-2764.patch
>
>
> We need a light-weight stemmer for plural/singlular only in Norwegian

--
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

       

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


[jira] [Updated] (SOLR-2764) Create a NorwegianLightStemmer and NorwegianMinimalStemmer

Posted by "Christian Moen (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SOLR-2764?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Christian Moen updated SOLR-2764:
---------------------------------

    Attachment: SOLR-2764.patch
    
> Create a NorwegianLightStemmer and NorwegianMinimalStemmer
> ----------------------------------------------------------
>
>                 Key: SOLR-2764
>                 URL: https://issues.apache.org/jira/browse/SOLR-2764
>             Project: Solr
>          Issue Type: New Feature
>          Components: Schema and Analysis
>            Reporter: Jan Høydahl
>             Fix For: 3.6, 4.0
>
>         Attachments: SOLR-2764.patch, SOLR-2764.patch, SOLR-2764.patch
>
>
> We need a simple light-weight stemmer and a minimal stemmer for plural/singlular only in Norwegian

--
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

       

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


[jira] [Resolved] (SOLR-2764) Create a NorwegianLightStemmer and NorwegianMinimalStemmer

Posted by "Jan Høydahl (Resolved JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SOLR-2764?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jan Høydahl resolved SOLR-2764.
-------------------------------

    Resolution: Fixed

Committed to trunk and branch_3x
                
> Create a NorwegianLightStemmer and NorwegianMinimalStemmer
> ----------------------------------------------------------
>
>                 Key: SOLR-2764
>                 URL: https://issues.apache.org/jira/browse/SOLR-2764
>             Project: Solr
>          Issue Type: New Feature
>          Components: Schema and Analysis
>            Reporter: Jan Høydahl
>            Assignee: Jan Høydahl
>             Fix For: 3.6, 4.0
>
>         Attachments: SOLR-2764.patch, SOLR-2764.patch, SOLR-2764.patch, SOLR-2764.patch, SOLR-2764.patch
>
>
> We need a simple light-weight stemmer and a minimal stemmer for plural/singlular only in Norwegian

--
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

       

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


[jira] [Commented] (SOLR-2764) Create a Norwegian plural/singular stemmer

Posted by "Jan Høydahl (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SOLR-2764?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13104539#comment-13104539 ] 

Jan Høydahl commented on SOLR-2764:
-----------------------------------

Unfortunately the rules for Noun conjugation is much more complex in Norwegian than English, and there are many irregularities.

> Create a Norwegian plural/singular stemmer
> ------------------------------------------
>
>                 Key: SOLR-2764
>                 URL: https://issues.apache.org/jira/browse/SOLR-2764
>             Project: Solr
>          Issue Type: New Feature
>          Components: Schema and Analysis
>            Reporter: Jan Høydahl
>
> We need a light-weight stemmer for plural/singlular only in Norwegian

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


[jira] [Commented] (SOLR-2764) Create a NorwegianLightStemmer and NorwegianMinimalStemmer

Posted by "Robert Muir (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SOLR-2764?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13233472#comment-13233472 ] 

Robert Muir commented on SOLR-2764:
-----------------------------------

Very nice work Jan!
                
> Create a NorwegianLightStemmer and NorwegianMinimalStemmer
> ----------------------------------------------------------
>
>                 Key: SOLR-2764
>                 URL: https://issues.apache.org/jira/browse/SOLR-2764
>             Project: Solr
>          Issue Type: New Feature
>          Components: Schema and Analysis
>            Reporter: Jan Høydahl
>            Assignee: Jan Høydahl
>             Fix For: 3.6, 4.0
>
>         Attachments: SOLR-2764.patch, SOLR-2764.patch, SOLR-2764.patch, SOLR-2764.patch, SOLR-2764.patch
>
>
> We need a simple light-weight stemmer and a minimal stemmer for plural/singlular only in Norwegian

--
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

       

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


[jira] [Updated] (SOLR-2764) Create a NorwegianLightStemmer and NorwegianMinimalStemmer

Posted by "Jan Høydahl (Updated JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SOLR-2764?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jan Høydahl updated SOLR-2764:
------------------------------

    Attachment: SOLR-2764.patch

Thanks for reviewing.

You're right - we don't have a reference implementation or corpus that we can validate against, so forking the Swedish LightStemmer was perhaps a bit optimistic. So it needs some more love :)

Then I created a NorwegianMinimalStemmer only for nouns and -s endings. It is much simpler to hand-craft and it works pretty well to my taste :)

Since the test dictionary is small, I changed it into plaintext rather than .zip, so now both dictionaries are in the patch.
                
> Create a NorwegianLightStemmer and NorwegianMinimalStemmer
> ----------------------------------------------------------
>
>                 Key: SOLR-2764
>                 URL: https://issues.apache.org/jira/browse/SOLR-2764
>             Project: Solr
>          Issue Type: New Feature
>          Components: Schema and Analysis
>            Reporter: Jan Høydahl
>             Fix For: 3.6, 4.0
>
>         Attachments: SOLR-2764.patch, SOLR-2764.patch
>
>
> We need a simple light-weight stemmer and a minimal stemmer for plural/singlular only in Norwegian

--
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

       

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


[jira] [Commented] (SOLR-2764) Create a Norwegian plural/singular stemmer

Posted by "Robert Muir (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SOLR-2764?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13104577#comment-13104577 ] 

Robert Muir commented on SOLR-2764:
-----------------------------------

I would leave the irregularities out (e.g. just like our english one basically 'strips the s)'.
someone can always deal with exceptions with their own list: stemmerOverrideFilter etc

i dont know anything about norwegian but you can take the other languages as examples here, 
and create the ruleset for the most common nominal inflections... e.g. strip { -a, -ene, -en, -er, -et }  
or whatever.


> Create a Norwegian plural/singular stemmer
> ------------------------------------------
>
>                 Key: SOLR-2764
>                 URL: https://issues.apache.org/jira/browse/SOLR-2764
>             Project: Solr
>          Issue Type: New Feature
>          Components: Schema and Analysis
>            Reporter: Jan Høydahl
>
> We need a light-weight stemmer for plural/singlular only in Norwegian

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


[jira] [Commented] (SOLR-2764) Create a Norwegian plural/singular stemmer

Posted by "Jan Høydahl (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SOLR-2764?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13104468#comment-13104468 ] 

Jan Høydahl commented on SOLR-2764:
-----------------------------------

One idea is try the Hunspell stemmer and modify the .aff file to only do plural/singular of nouns

> Create a Norwegian plural/singular stemmer
> ------------------------------------------
>
>                 Key: SOLR-2764
>                 URL: https://issues.apache.org/jira/browse/SOLR-2764
>             Project: Solr
>          Issue Type: New Feature
>          Components: Schema and Analysis
>            Reporter: Jan Høydahl
>
> We need a light-weight stemmer for plural/singlular only in Norwegian

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


[jira] [Issue Comment Edited] (SOLR-2764) Create a NorwegianLightStemmer and NorwegianMinimalStemmer

Posted by "Jan Høydahl (Issue Comment Edited JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SOLR-2764?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13195820#comment-13195820 ] 

Jan Høydahl edited comment on SOLR-2764 at 1/29/12 10:09 PM:
-------------------------------------------------------------

Thanks Christian. I further refined stuff:

- I think the MinimalStemmer is more or less good to go, it seems to do what it's supposed to
- For LightStemmer, we now do "two-pass" removal for the -dom and -het endings. This means that the word "kristendom" will first be stemmed to "kristen", and then all the general rules apply so it will be further stemmed to "krist". The effect of this is that both "kristen,kristendom,kristendommen,kristendommens" will all be stemmed to "krist" (due to in this case incorrect interpretation of -en as singular definite ending).
- Added some more tests to highlight this

What do you think, is this -dom -het thing a reasonable improvement or could there be side effects?

Are there some other general rules that could easily be incorporated to catch semi-regular conjugations for the light stemmer?
                
      was (Author: janhoy):
    Thanks Christian. I further refined stuff:

- For MinimalStemmer, we now do two-pass removal for the -dom and -het endings. This means that the word kristendom will first be stemmed to kristen, and then all the general rules apply so it will be further stemmed to krist. The effect of this is that both "kristen,kristendom,kristendommen,kristendommens" will all be stemmed to "krist" (due to in this case incorrect interpretation of -en as plural ending), but when stopping at -dom removal, kristendom would not match inflections of kristen.

What do you think, is this a reasonable improvement or could there be side effects? I've not added these rules to the MinimalStemmer, to keep it simpler.
                  
> Create a NorwegianLightStemmer and NorwegianMinimalStemmer
> ----------------------------------------------------------
>
>                 Key: SOLR-2764
>                 URL: https://issues.apache.org/jira/browse/SOLR-2764
>             Project: Solr
>          Issue Type: New Feature
>          Components: Schema and Analysis
>            Reporter: Jan Høydahl
>             Fix For: 3.6, 4.0
>
>         Attachments: SOLR-2764.patch, SOLR-2764.patch, SOLR-2764.patch, SOLR-2764.patch
>
>
> We need a simple light-weight stemmer and a minimal stemmer for plural/singlular only in Norwegian

--
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

       

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


[jira] [Commented] (SOLR-2764) Create a NorwegianLightStemmer and NorwegianMinimalStemmer

Posted by "Robert Muir (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SOLR-2764?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13199235#comment-13199235 ] 

Robert Muir commented on SOLR-2764:
-----------------------------------

Jan, i wasn't trying to be critical about these endings, because of course some of the existing light stemmers
have a few _selected_ derivational endings that are taken care of. And thats really what its all about,
when we are talking about something like adjective->noun, I didnt mean to say we shouldn't do it, because
it sounds quite reasonable: but we should explore the options.

For example, as an alternative to multi-pass, a 'less elegant to some' but really practical way to go about it
can be to 'multiply through' and convert the possibilities to single-pass.

E.g. the typical 'undrinkables' hunspell example: if i have the english inflectional plural ending -s and the 
derivational ending -able, instead of:
* pass 1: remove inflectional endings (e.g. -s)
* pass 2: remove derivational endings (e.g. -able)

we just take all the pass 2 endings that are compatible with pass 1 endings and cross-multiply, to make a single
pass algorithm. some won't be compatible, (so we won't combine -able + -s into -ables).

I'm not sure if this is helpful for the norwegian case as I'm not as familiar with it, just an idea.

                
> Create a NorwegianLightStemmer and NorwegianMinimalStemmer
> ----------------------------------------------------------
>
>                 Key: SOLR-2764
>                 URL: https://issues.apache.org/jira/browse/SOLR-2764
>             Project: Solr
>          Issue Type: New Feature
>          Components: Schema and Analysis
>            Reporter: Jan Høydahl
>             Fix For: 3.6, 4.0
>
>         Attachments: SOLR-2764.patch, SOLR-2764.patch, SOLR-2764.patch, SOLR-2764.patch
>
>
> We need a simple light-weight stemmer and a minimal stemmer for plural/singlular only in Norwegian

--
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

       

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org