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

Steven Rowe commented on LUCENE-2745:
-------------------------------------

{quote}
this is how the whole analyzer works, more examples in
the tests... I can give you more refs later, when I have
better bandwidth... but its specific to this language.
we shouldn't split on it in general... also often a real
space is used instead, so this approach is the simplest
for the language
{quote}

AFAICT, ArabicLetterTokenizer just adds non-spacing marks to the list of 
acceptable token characters, so they won't be used to split words.  However, 
ZWNJ (U+200C) has the "Cf" -- Format -- general category, *not* the "Mn" 
general category (non-spacing marks), so as far as I can tell, the current 
Lucene ArabicLetterTokenizer (and hence ArabicAnalyzer) splits on ZWNJ.

None of the tests in TestArabicLetterTokenizer nor in TestArabicAnalyzer 
contain ZWNJ (U+200C).

Maybe what I'm not understanding is "this approach" in your quote above.  Can 
you describe "this approach"?

When you wrote "we split on this and the affixes are in the stoplist" did you 
mean that ArabicLetterTokenizer *intentionally* breaks Persian words at ZWNJ?  
And then throws away the affixes that result?  Hunh????


> ArabicAnalyzer - the ability to recognise email addresses host names and so on
> ------------------------------------------------------------------------------
>
>                 Key: LUCENE-2745
>                 URL: https://issues.apache.org/jira/browse/LUCENE-2745
>             Project: Lucene - Java
>          Issue Type: Improvement
>          Components: contrib/analyzers
>    Affects Versions: 2.9.2, 2.9.3, 3.0, 3.0.1, 3.0.2
>         Environment: All
>            Reporter: M Alexander
>
> The ArabicAnalyzer does not recognise email addresses, hostnames and so on. 
> For example,
> [email protected]
> will be tokenised to [adam] [hotmail] [com]
> It would be great if the ArabicAnalyzer can tokenises this to 
> [[email protected]]. The same applies to hostnames and so on.
> Can this be resolved? I hope so
> Thanks
> MAA

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to