You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@opennlp.apache.org by Amir Pouya Agha Sadeghi <am...@gmail.com> on 2014/02/13 08:42:27 UTC

Combining result with Stanford NER

Hello Guys,
Ok, I changed the feature generation file and improved my result.Now I want
to combine my open nlp name finder result with my Stanford NER result. My
first idea was a simple voting system but since I have only two system and
it can be a tie, I can not do that. Any one ever did that sort of things
before?

Re: Combining result with Stanford NER

Posted by Jean-Philippe Fauconnier <je...@gmail.com>.
If you have only probabilistic models, you can use too a stacking 
strategy, combining the outputs of yours multiple models in a simple 
logistic regression. And why not, add some extra features.

J.



On 13/02/14 10:52, Jörn Kottmann wrote:
> On 02/13/2014 08:42 AM, Amir Pouya Agha Sadeghi wrote:
>> Hello Guys,
>> Ok, I changed the feature generation file and improved my result.Now 
>> I want
>> to combine my open nlp name finder result with my Stanford NER 
>> result. My
>> first idea was a simple voting system but since I have only two 
>> system and
>> it can be a tie, I can not do that. Any one ever did that sort of things
>> before?
>>
>
> You could use more models, in OpenNLP you can train a perceptron and 
> maxent model.
> The perceptron model might work much better, depending on your data.
>
> In the latest trunk version we now also have support for mallet maxent 
> and crf.
>
> HTH,
> Jörn


Re: Combining result with Stanford NER

Posted by Jörn Kottmann <ko...@gmail.com>.
On 02/13/2014 08:42 AM, Amir Pouya Agha Sadeghi wrote:
> Hello Guys,
> Ok, I changed the feature generation file and improved my result.Now I want
> to combine my open nlp name finder result with my Stanford NER result. My
> first idea was a simple voting system but since I have only two system and
> it can be a tie, I can not do that. Any one ever did that sort of things
> before?
>

You could use more models, in OpenNLP you can train a perceptron and 
maxent model.
The perceptron model might work much better, depending on your data.

In the latest trunk version we now also have support for mallet maxent 
and crf.

HTH,
Jörn

Re: Combining result with Stanford NER

Posted by "Jim - FooBar();" <ji...@gmail.com>.
On 13/02/14 07:42, Amir Pouya Agha Sadeghi wrote:
> Hello Guys,
> Ok, I changed the feature generation file and improved my result.Now I want
> to combine my open nlp name finder result with my Stanford NER result. My
> first idea was a simple voting system but since I have only two system and
> it can be a tie, I can not do that. Any one ever did that sort of things
> before?
>
You need to resolve ties somehow...If both your models are probabilistic 
you can perhaps look at their prediction confidence values...If you have 
a mixture of probabilistic and deterministic models you have to come up 
with something else. I've done something similar in the past where I 
combined a perceptron model, a maxent model, 3 dictionaries and 11 
regex...what I did was to assign 100% confidence to the dictionaries and 
regexes...

HTH,
Jim

ps: have a look at my paper for more details "Dealing with data-sparsity 
in drug NER"