You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@opennlp.apache.org by Olivier Grisel <ol...@ensta.org> on 2011/06/22 10:27:06 UTC
Corpus refinement tools (WAS: Board report status items)
2011/6/22 Jörn Kottmann <ko...@gmail.com>:
> On 6/11/11 5:06 PM, Olivier Grisel wrote:
>>
>> 2011/6/11 Grant Ingersoll<gs...@apache.org>:
>>>
>>> I signed off on the BR, but a couple of questions:
>>>
>>> What do we need to do on the IP front? Is that really a blocker for
>>> graduation?
>>>
>>> Also, I don't think the regression tests are a blocker for graduation.
>>>
>>> I did add that we need to find some more candidates for
>>> contributions/committership, which I do think is a blocker.
>>
>> I am willing to be a new candidate for committership if the opennlp
>> devs judge that the corpus-refiner tooling introduced in the other
>> thread would fit somewhere somewhere in the project (probably as a new
>> maven artifact).
>>
>> I assume that Hannes might be interested as well.
>
> Nice, lets open a new thread and speak it bit more about this contribution,
> is it something new you want to work on, or do you speak about contributing
> an existing code base?
There is indeed a proof of concept here:
https://github.com/ogrisel/bbuzz-semantic-hackathon/tree/master/corpus-refiner/
Currently there is only a basic command line interface. I plan to work
on a SWING version too and Hannes started to work on a HTML /
Javascript frontend.
I think the existing corpus refiner need to be able to store the
validations / corrections in a separate file or database (e.g. derby)
+ another tool to take a OpenNLP formatted corpus + a validation DB to
generate a new version of the corpus file
I could also contribute my pig scripts and UDF from
https://github.com/ogrisel/pignlproc [1] but I feel that soon enough
Spark [2] will be mature enough enough to rewrite them in scala.
Sparse just lacks an efficient JOIN/COGROUP operation to be able to do
so but this will probably soon be the case [3]. So I suggest that we
wait before considering a contribution of pignlproc code base to
opennlp.
[1] https://github.com/ogrisel/pignlproc
[2] http://www.spark-project.org/
[3] https://github.com/mesos/spark/issues/4
--
Olivier
http://twitter.com/ogrisel - http://github.com/ogrisel
Re: Corpus refinement tools (WAS: Board report status items)
Posted by Jörn Kottmann <ko...@gmail.com>.
On 6/22/11 10:53 AM, Olivier Grisel wrote:
> 2011/6/22 Jörn Kottmann<ko...@gmail.com>:
>> On 6/22/11 10:27 AM, Olivier Grisel wrote:
>>> Currently there is only a basic command line interface. I plan to work
>>> on a SWING version too and Hannes started to work on a HTML /
>>> Javascript frontend.
>> Did you have a look at the Cas Editor? It might have already many of
>> the features you need.
> I had some time ago but AFAIK it does not focus on line by line,
> keyboard based "binary" (true / false) validation and fast keyboard
> based scanning of a large corpus.
Yes, it is not, but it can be extended to be like this. You would add a
new view
which maybe shows a list of names you want to validate.
> My use case if to bootstrap a OpenNLP model from the output an rough
> incomplete extraction of Wikipedia with pignlproc as explained in [1],
> use such (roughly) trained NameFinder model on new wikipedia text and
> then use the refiner to validate the output of the NameFiner model so
> as to be able to iterate later (potentially with a more active
> learning strategy as in Dualist).
>
> I will have another look at Cas Editor before embarking in the Swing
> version though.
In your case you would need to cut your big amount of input text into
meaningful
pieces a user can work on. For wikipedia maybe an article level makes sense.
The user would see the entire article and you collect the input
with the new validation view. It would be easy to add good keyboard
support to this view.
The Cas Editor is CAS based, but in your case it would be connected to a
server which
can provide the next CAS to label and can collect the labeled CASes.
In a corpus project I think it is nice to have very specialized tooling
to collect annotations
very efficient, but you also need tooling to view all the annotations
you have collected. For the
later I think the Cas Editor could be a good tool.
The reason why I like a UIMA enabled approach so much is that our
infrastructure can then
be used by almost any annotation project and that will help us to get
OpenNLP into more domains
maybe even into domains where training data will always be confidential.
Jörn
Re: Corpus refinement tools (WAS: Board report status items)
Posted by Olivier Grisel <ol...@ensta.org>.
2011/6/22 Jörn Kottmann <ko...@gmail.com>:
> On 6/22/11 10:27 AM, Olivier Grisel wrote:
>>
>> Currently there is only a basic command line interface. I plan to work
>> on a SWING version too and Hannes started to work on a HTML /
>> Javascript frontend.
>
> Did you have a look at the Cas Editor? It might have already many of
> the features you need.
I had some time ago but AFAIK it does not focus on line by line,
keyboard based "binary" (true / false) validation and fast keyboard
based scanning of a large corpus.
My use case if to bootstrap a OpenNLP model from the output an rough
incomplete extraction of Wikipedia with pignlproc as explained in [1],
use such (roughly) trained NameFinder model on new wikipedia text and
then use the refiner to validate the output of the NameFiner model so
as to be able to iterate later (potentially with a more active
learning strategy as in Dualist).
I will have another look at Cas Editor before embarking in the Swing
version though.
[1]
http://blogs.nuxeo.com/dev/2011/01/mining-wikipedia-with-hadoop-and-pig-for-natural-language-processing.html
--
Olivier
http://twitter.com/ogrisel - http://github.com/ogrisel
Re: Corpus refinement tools (WAS: Board report status items)
Posted by Jörn Kottmann <ko...@gmail.com>.
On 6/22/11 10:27 AM, Olivier Grisel wrote:
> Currently there is only a basic command line interface. I plan to work
> on a SWING version too and Hannes started to work on a HTML /
> Javascript frontend.
Did you have a look at the Cas Editor? It might have already many of
the features you need.
Jörn