You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Robert Muir (JIRA)" <ji...@apache.org> on 2016/07/24 11:47:20 UTC

[jira] [Commented] (LUCENE-7393) Incorrect ICUTokenization on South East Asian Language

    [ https://issues.apache.org/jira/browse/LUCENE-7393?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15391033#comment-15391033 ] 

Robert Muir commented on LUCENE-7393:
-------------------------------------

Hello,

4.10.x used a simple set of rules (https://github.com/apache/lucene-solr/blob/releases/lucene-solr/4.10.4/lucene/analysis/icu/src/data/uax29/Myanmar.rbbi)

Newer versions use ICU's dictionary-based algorithm (http://source.icu-project.org/repos/icu/icu4j/trunk/main/classes/core/src/com/ibm/icu/text/BurmeseBreakEngine.java), but that seems to be the problem here. 

You can see that by testing here: http://unicode.org/cldr/utility/breaks.jsp

I think we should file a bug with ICU. 

> Incorrect ICUTokenization on South East Asian Language
> ------------------------------------------------------
>
>                 Key: LUCENE-7393
>                 URL: https://issues.apache.org/jira/browse/LUCENE-7393
>             Project: Lucene - Core
>          Issue Type: Bug
>          Components: modules/analysis
>    Affects Versions: 5.5
>         Environment: Ubuntu
>            Reporter: AM
>
> Lucene 4.10.3 correctly tokenize a syllable into one token.  However in Lucune 5.5.0 it end up being two tokens which is incorrect.  Please let me know segmentation rules are implemented by native speakers of a particular language? In this particular example, it is M-y-a-n-m-a-r language.  I have understood that L-a-o, K-m-e-r and M-y-a-n-m-a-r fall into ICU category.  Thanks a lot.
> h4. Example 4.10.3
> {code:javascript}
> GET _analyze?tokenizer=icu_tokenizer&text="နည်"
> {
>    "tokens": [
>       {
>          "token": "နည်",
>          "start_offset": 1,
>          "end_offset": 4,
>          "type": "<ALPHANUM>",
>          "position": 1
>       }
>    ]
> }
> {code}
> h4. Example 5.5.0
> {code:javascript}
> GET _analyze?tokenizer=icu_tokenizer&text="နည်"
> {
>   "tokens": [
>     {
>       "token": "န",
>       "start_offset": 0,
>       "end_offset": 1,
>       "type": "<ALPHANUM>",
>       "position": 0
>     },
>     {
>       "token": "ည်",
>       "start_offset": 1,
>       "end_offset": 3,
>       "type": "<ALPHANUM>",
>       "position": 1
>     }
>   ]
> }
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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