lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Steven Rowe (JIRA)" <>
Subject [jira] Commented: (LUCENE-2745) ArabicAnalyzer - the ability to recognise email addresses host names and so on
Date Sun, 07 Nov 2010 21:08:08 GMT


Steven Rowe commented on LUCENE-2745:

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

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?

> ArabicAnalyzer - the ability to recognise email addresses host names and so on
> ------------------------------------------------------------------------------
>                 Key: LUCENE-2745
>                 URL:
>             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,
> will be tokenised to [adam] [hotmail] [com]
> It would be great if the ArabicAnalyzer can tokenises this to []. The
same applies to hostnames and so on.
> Can this be resolved? I hope so
> Thanks

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:
For additional commands, e-mail:

View raw message