Re: uima fieldMappings and solr dynamicField

2011-05-09 Thread Koji Sekiguchi

Thanks Tommaso! I'm glad to hear from the person with experience.
I'll commit shortly.

Koji

(11/05/09 17:57), Tommaso Teofili wrote:

Thanks Koji for opening that, the dynamicField mapping is a commonly used
feature especially for named entities mapping.
Tommaso

2011/5/7 Koji Sekiguchi


I've opened https://issues.apache.org/jira/browse/SOLR-2503 .

Koji
--
http://www.rondhuit.com/en/

(11/05/06 20:15), Koji Sekiguchi wrote:

Hello,

I'd like to use dynamicField in feature-field mapping of uima update
processor. It doesn't seem to be acceptable currently. Is it a bad idea
in terms of use of uima? If it is not so bad, I'd like to try a patch.

Background:

Because my uima annotator can generate many types of named entity from
a text, I don't want to implement so many types, but one type

"NamedEntity":




  
com.rondhuit.uima.next.NamedEntity

uima.tcas.Annotation

  
name

uima.cas.String
  
  
entity

uima.cas.String
  

  



sample extracted named entities:

name="PERSON", entity="Barack Obama"
name="TITLE", entity="the President"

Now, I'd like to map these named entities to Solr fields like this:

PERSON_S:"Barack Obama"
TITLE_S:"the President"

Because the type of name (PERSON, TITLE, etc.) can be so many,
I'd like to use dynamicField *_s. And where * is replaced by the name
feature of NamedEntity.

I think this is natural requirement from Solr view point, but I'm
not sure my uima annotator implementation is correct or not. In other
words, should I implement many types for each entity types?
(e.g. PersonEntity, TitleEntity, ... instead of NamedEntity)

Thank you!

Koji









--
http://www.rondhuit.com/en/


Re: uima fieldMappings and solr dynamicField

2011-05-09 Thread Tommaso Teofili
Thanks Koji for opening that, the dynamicField mapping is a commonly used
feature especially for named entities mapping.
Tommaso

2011/5/7 Koji Sekiguchi 

> I've opened https://issues.apache.org/jira/browse/SOLR-2503 .
>
> Koji
> --
> http://www.rondhuit.com/en/
>
> (11/05/06 20:15), Koji Sekiguchi wrote:
> > Hello,
> >
> > I'd like to use dynamicField in feature-field mapping of uima update
> > processor. It doesn't seem to be acceptable currently. Is it a bad idea
> > in terms of use of uima? If it is not so bad, I'd like to try a patch.
> >
> > Background:
> >
> > Because my uima annotator can generate many types of named entity from
> > a text, I don't want to implement so many types, but one type
> "NamedEntity":
> >
> > 
> >
> >  
> >com.rondhuit.uima.next.NamedEntity
> >
> >uima.tcas.Annotation
> >
> >  
> >name
> >
> >uima.cas.String
> >  
> >  
> >entity
> >
> >uima.cas.String
> >  
> >
> >  
> >
> > 
> >
> > sample extracted named entities:
> >
> > name="PERSON", entity="Barack Obama"
> > name="TITLE", entity="the President"
> >
> > Now, I'd like to map these named entities to Solr fields like this:
> >
> > PERSON_S:"Barack Obama"
> > TITLE_S:"the President"
> >
> > Because the type of name (PERSON, TITLE, etc.) can be so many,
> > I'd like to use dynamicField *_s. And where * is replaced by the name
> > feature of NamedEntity.
> >
> > I think this is natural requirement from Solr view point, but I'm
> > not sure my uima annotator implementation is correct or not. In other
> > words, should I implement many types for each entity types?
> > (e.g. PersonEntity, TitleEntity, ... instead of NamedEntity)
> >
> > Thank you!
> >
> > Koji
>
>
>


Re: uima fieldMappings and solr dynamicField

2011-05-07 Thread Koji Sekiguchi
I've opened https://issues.apache.org/jira/browse/SOLR-2503 .

Koji
-- 
http://www.rondhuit.com/en/

(11/05/06 20:15), Koji Sekiguchi wrote:
> Hello,
> 
> I'd like to use dynamicField in feature-field mapping of uima update
> processor. It doesn't seem to be acceptable currently. Is it a bad idea
> in terms of use of uima? If it is not so bad, I'd like to try a patch.
> 
> Background:
> 
> Because my uima annotator can generate many types of named entity from
> a text, I don't want to implement so many types, but one type "NamedEntity":
> 
> 
>
>  
>com.rondhuit.uima.next.NamedEntity
>
>uima.tcas.Annotation
>
>  
>name
>
>uima.cas.String
>  
>  
>entity
>
>uima.cas.String
>  
>
>  
>
> 
> 
> sample extracted named entities:
> 
> name="PERSON", entity="Barack Obama"
> name="TITLE", entity="the President"
> 
> Now, I'd like to map these named entities to Solr fields like this:
> 
> PERSON_S:"Barack Obama"
> TITLE_S:"the President"
> 
> Because the type of name (PERSON, TITLE, etc.) can be so many,
> I'd like to use dynamicField *_s. And where * is replaced by the name
> feature of NamedEntity.
> 
> I think this is natural requirement from Solr view point, but I'm
> not sure my uima annotator implementation is correct or not. In other
> words, should I implement many types for each entity types?
> (e.g. PersonEntity, TitleEntity, ... instead of NamedEntity)
> 
> Thank you!
> 
> Koji




uima fieldMappings and solr dynamicField

2011-05-06 Thread Koji Sekiguchi
Hello,

I'd like to use dynamicField in feature-field mapping of uima update
processor. It doesn't seem to be acceptable currently. Is it a bad idea
in terms of use of uima? If it is not so bad, I'd like to try a patch.

Background:

Because my uima annotator can generate many types of named entity from
a text, I don't want to implement so many types, but one type "NamedEntity":


  

  com.rondhuit.uima.next.NamedEntity
  
  uima.tcas.Annotation
  

  name
  
  uima.cas.String


  entity
  
  uima.cas.String

  

  


sample extracted named entities:

name="PERSON", entity="Barack Obama"
name="TITLE", entity="the President"

Now, I'd like to map these named entities to Solr fields like this:

PERSON_S:"Barack Obama"
TITLE_S:"the President"

Because the type of name (PERSON, TITLE, etc.) can be so many,
I'd like to use dynamicField *_s. And where * is replaced by the name
feature of NamedEntity.

I think this is natural requirement from Solr view point, but I'm
not sure my uima annotator implementation is correct or not. In other
words, should I implement many types for each entity types?
(e.g. PersonEntity, TitleEntity, ... instead of NamedEntity)

Thank you!

Koji
-- 
http://www.rondhuit.com/en/