You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@opennlp.apache.org by Gustavo Knuppe <gu...@gmail.com> on 2014/10/07 06:02:14 UTC

OpenNLP Port

Hi,

first I would like to thank this team that developed the library, I need to
say it has lots of cool stuff :)

I'm working on a independent port of the OpenNLP to C#, I wonder if I need
to add anything else to the readme or license or if the information is
enough.

Project:
https://github.com/knuppe/SharpNL

Any comments and suggestions are welcomed


Thanks

Gustavo K.

Re: OpenNLP Port

Posted by Gustavo Knuppe <gu...@gmail.com>.
Hi,

The library it's almost fully ported, currently I manage to create/train
models using my port and use with OpenNLP without problems (and vice
versa), so I'm assuming it's 100% compatible so far. I tried not to change
too much, but had to re-write a lot things to make everything compatible
and extensible.

All the tests are passing without problems, and even the probabilities are
matching, between OpenNLP and my port :)

I still have to run a profiller and adapt some parts of the code to improve
performance, but the performance is much better compared to IKVM-based
OpenNLP.

I'm also making a user-friendly interface, a kind of IDE for the library.
If anyone wants to see, here is a screenshot: http://imgur.com/vZRZuCs


Gustavo K.


2014-10-10 1:35 GMT-03:00 Samik Raychaudhuri <sa...@gmail.com>:

> Hi,
> Great initiative. I have tried out the other two solutions (the old
> project and the IKVM-based) but have moved away because of the issues
> mentioned.
> Got myself as a watcher.
> Best.
>
>
> On 08/10/2014 4:18 PM, Jörn Kottmann wrote:
>
>> On 10/08/2014 12:35 PM, Gustavo Knuppe wrote:
>>
>>> Jörn,
>>>
>>> IKVM works very well, but uses a lot of memory and takes too long to
>>> process larger documents.
>>>
>>> I'm preferring a cleaner and more lightweight solution, I'm not porting
>>> any
>>> obsolete method from the OpenNLP, also I will improve the recognition of
>>> the Portuguese in the library
>>>
>>> In my mind, I'm committed to do this project... So, I prefer to do the
>>> best
>>> I can, let's see what can be accomplished.
>>>
>>> The good thing is that I'm reviewing every line of code OpenNLP, I’m
>>> taking
>>> note of a few things that may not be correct, will soon share those notes
>>> with the devs here.
>>>
>>
>> Sounds good.
>>
>> Do you also want to port all the training code, or only the code that is
>> necessary to run a model?
>>
>> If you have any question about the data formats just ask here. We maybe
>> should also work
>> on documenting them.
>>
>> We have some features that are Java only e.g. loading a user implemented
>> Java class, not sure if
>> that can be supported at all. Anyway, that is not a very common use case.
>>
>> Jörn
>>
>
>

Re: OpenNLP Port

Posted by Samik Raychaudhuri <sa...@gmail.com>.
Hi,
Great initiative. I have tried out the other two solutions (the old 
project and the IKVM-based) but have moved away because of the issues 
mentioned.
Got myself as a watcher.
Best.

On 08/10/2014 4:18 PM, Jörn Kottmann wrote:
> On 10/08/2014 12:35 PM, Gustavo Knuppe wrote:
>> Jörn,
>>
>> IKVM works very well, but uses a lot of memory and takes too long to
>> process larger documents.
>>
>> I'm preferring a cleaner and more lightweight solution, I'm not 
>> porting any
>> obsolete method from the OpenNLP, also I will improve the recognition of
>> the Portuguese in the library
>>
>> In my mind, I'm committed to do this project... So, I prefer to do 
>> the best
>> I can, let's see what can be accomplished.
>>
>> The good thing is that I'm reviewing every line of code OpenNLP, I’m 
>> taking
>> note of a few things that may not be correct, will soon share those 
>> notes
>> with the devs here.
>
> Sounds good.
>
> Do you also want to port all the training code, or only the code that 
> is necessary to run a model?
>
> If you have any question about the data formats just ask here. We 
> maybe should also work
> on documenting them.
>
> We have some features that are Java only e.g. loading a user 
> implemented Java class, not sure if
> that can be supported at all. Anyway, that is not a very common use case.
>
> Jörn


Re: OpenNLP Port

Posted by Jörn Kottmann <ko...@gmail.com>.
On 10/08/2014 12:35 PM, Gustavo Knuppe wrote:
> Jörn,
>
> IKVM works very well, but uses a lot of memory and takes too long to
> process larger documents.
>
> I'm preferring a cleaner and more lightweight solution, I'm not porting any
> obsolete method from the OpenNLP, also I will improve the recognition of
> the Portuguese in the library
>
> In my mind, I'm committed to do this project... So, I prefer to do the best
> I can, let's see what can be accomplished.
>
> The good thing is that I'm reviewing every line of code OpenNLP, I’m taking
> note of a few things that may not be correct, will soon share those notes
> with the devs here.

Sounds good.

Do you also want to port all the training code, or only the code that is 
necessary to run a model?

If you have any question about the data formats just ask here. We maybe 
should also work
on documenting them.

We have some features that are Java only e.g. loading a user implemented 
Java class, not sure if
that can be supported at all. Anyway, that is not a very common use case.

Jörn

Re: OpenNLP Port

Posted by Gustavo Knuppe <gu...@gmail.com>.
Jörn,

IKVM works very well, but uses a lot of memory and takes too long to
process larger documents.

I'm preferring a cleaner and more lightweight solution, I'm not porting any
obsolete method from the OpenNLP, also I will improve the recognition of
the Portuguese in the library

In my mind, I'm committed to do this project... So, I prefer to do the best
I can, let's see what can be accomplished.

The good thing is that I'm reviewing every line of code OpenNLP, I’m taking
note of a few things that may not be correct, will soon share those notes
with the devs here.

2014-10-08 7:17 GMT-03:00 Jörn Kottmann <ko...@gmail.com>:

> Are you aware of the work which was done with IKVM?
>
> There is a wiki page describing it here:
> https://cwiki.apache.org/confluence/display/OPENNLP/
> Introduction+to+using+openNLP+in+.NET+Projects
>
> Maybe it is worth testing with the latest version and see were we stand.
> At the time the wiki page was written,
> there was a bug with the XML parser. Not sure how the situation is today.
> It might also be worth reporting
> those bugs to IKVM so they can fix them at some point.
>
> Jörn
>
>
> On 10/08/2014 11:58 AM, Tom Morton wrote:
>
>> Didn't someone do a C# port already?  Not sure if the project is active
>> but
>> there might be some learnings there.
>>
>> https://sharpnlp.codeplex.com/
>>
>> On Wed, Oct 8, 2014 at 3:44 AM, Jörn Kottmann <ko...@gmail.com> wrote:
>>
>>  Hello,
>>>
>>> if you copy our source code you need to respect the AL 2.0.
>>>
>>> The license itself can be found here:
>>> https://www.apache.org/licenses/LICENSE-2.0.html
>>>
>>> And here is an overview of what you have to do to distribute
>>> it as part of an other project:
>>> http://www.inteist.com/2010/05/how-to-use-apache-2-0-in-
>>> commercial-products-explained-in-simple-terms/
>>>
>>> The attribution should be copied from our NOTICE file.
>>>
>>> Jörn
>>>
>>>
>>>
>>>
>>>
>>> On 10/07/2014 06:02 AM, Gustavo Knuppe wrote:
>>>
>>>  Hi,
>>>>
>>>> first I would like to thank this team that developed the library, I need
>>>> to
>>>> say it has lots of cool stuff :)
>>>>
>>>> I'm working on a independent port of the OpenNLP to C#, I wonder if I
>>>> need
>>>> to add anything else to the readme or license or if the information is
>>>> enough.
>>>>
>>>> Project:
>>>> https://github.com/knuppe/SharpNL
>>>>
>>>> Any comments and suggestions are welcomed
>>>>
>>>>
>>>> Thanks
>>>>
>>>> Gustavo K.
>>>>
>>>>
>>>>
>

Re: OpenNLP Port

Posted by Jörn Kottmann <ko...@gmail.com>.
Are you aware of the work which was done with IKVM?

There is a wiki page describing it here:
https://cwiki.apache.org/confluence/display/OPENNLP/Introduction+to+using+openNLP+in+.NET+Projects

Maybe it is worth testing with the latest version and see were we stand. 
At the time the wiki page was written,
there was a bug with the XML parser. Not sure how the situation is 
today. It might also be worth reporting
those bugs to IKVM so they can fix them at some point.

Jörn

On 10/08/2014 11:58 AM, Tom Morton wrote:
> Didn't someone do a C# port already?  Not sure if the project is active but
> there might be some learnings there.
>
> https://sharpnlp.codeplex.com/
>
> On Wed, Oct 8, 2014 at 3:44 AM, Jörn Kottmann <ko...@gmail.com> wrote:
>
>> Hello,
>>
>> if you copy our source code you need to respect the AL 2.0.
>>
>> The license itself can be found here:
>> https://www.apache.org/licenses/LICENSE-2.0.html
>>
>> And here is an overview of what you have to do to distribute
>> it as part of an other project:
>> http://www.inteist.com/2010/05/how-to-use-apache-2-0-in-
>> commercial-products-explained-in-simple-terms/
>>
>> The attribution should be copied from our NOTICE file.
>>
>> Jörn
>>
>>
>>
>>
>>
>> On 10/07/2014 06:02 AM, Gustavo Knuppe wrote:
>>
>>> Hi,
>>>
>>> first I would like to thank this team that developed the library, I need
>>> to
>>> say it has lots of cool stuff :)
>>>
>>> I'm working on a independent port of the OpenNLP to C#, I wonder if I need
>>> to add anything else to the readme or license or if the information is
>>> enough.
>>>
>>> Project:
>>> https://github.com/knuppe/SharpNL
>>>
>>> Any comments and suggestions are welcomed
>>>
>>>
>>> Thanks
>>>
>>> Gustavo K.
>>>
>>>


Re: OpenNLP Port

Posted by Gustavo Knuppe <gu...@gmail.com>.
Jörn,

thanks for the reply, I added the NOTICE was the only thing that was not in
compliance.

the project is under AL2.0 too, and I really don't have any intention to
use the lib in
any proprietary software, at least for now :)


*Tom*,
Yes you are correct, however I'm not even looking at the code of other
projects,
are very outdated and are not maintained for years.

I'm actually building from scratch and my goal is to be 100% compatible
with the OpenNLP.

I believe that in a few weeks I have everything working

Thanks

2014-10-08 6:58 GMT-03:00 Tom Morton <ts...@gmail.com>:

> Didn't someone do a C# port already?  Not sure if the project is active but
> there might be some learnings there.
>
> https://sharpnlp.codeplex.com/
>
> On Wed, Oct 8, 2014 at 3:44 AM, Jörn Kottmann <ko...@gmail.com> wrote:
>
> > Hello,
> >
> > if you copy our source code you need to respect the AL 2.0.
> >
> > The license itself can be found here:
> > https://www.apache.org/licenses/LICENSE-2.0.html
> >
> > And here is an overview of what you have to do to distribute
> > it as part of an other project:
> > http://www.inteist.com/2010/05/how-to-use-apache-2-0-in-
> > commercial-products-explained-in-simple-terms/
> >
> > The attribution should be copied from our NOTICE file.
> >
> > Jörn
> >
> >
> >
> >
> >
> > On 10/07/2014 06:02 AM, Gustavo Knuppe wrote:
> >
> >> Hi,
> >>
> >> first I would like to thank this team that developed the library, I need
> >> to
> >> say it has lots of cool stuff :)
> >>
> >> I'm working on a independent port of the OpenNLP to C#, I wonder if I
> need
> >> to add anything else to the readme or license or if the information is
> >> enough.
> >>
> >> Project:
> >> https://github.com/knuppe/SharpNL
> >>
> >> Any comments and suggestions are welcomed
> >>
> >>
> >> Thanks
> >>
> >> Gustavo K.
> >>
> >>
> >
>

Re: OpenNLP Port

Posted by Tom Morton <ts...@gmail.com>.
Didn't someone do a C# port already?  Not sure if the project is active but
there might be some learnings there.

https://sharpnlp.codeplex.com/

On Wed, Oct 8, 2014 at 3:44 AM, Jörn Kottmann <ko...@gmail.com> wrote:

> Hello,
>
> if you copy our source code you need to respect the AL 2.0.
>
> The license itself can be found here:
> https://www.apache.org/licenses/LICENSE-2.0.html
>
> And here is an overview of what you have to do to distribute
> it as part of an other project:
> http://www.inteist.com/2010/05/how-to-use-apache-2-0-in-
> commercial-products-explained-in-simple-terms/
>
> The attribution should be copied from our NOTICE file.
>
> Jörn
>
>
>
>
>
> On 10/07/2014 06:02 AM, Gustavo Knuppe wrote:
>
>> Hi,
>>
>> first I would like to thank this team that developed the library, I need
>> to
>> say it has lots of cool stuff :)
>>
>> I'm working on a independent port of the OpenNLP to C#, I wonder if I need
>> to add anything else to the readme or license or if the information is
>> enough.
>>
>> Project:
>> https://github.com/knuppe/SharpNL
>>
>> Any comments and suggestions are welcomed
>>
>>
>> Thanks
>>
>> Gustavo K.
>>
>>
>

Re: OpenNLP Port

Posted by Jörn Kottmann <ko...@gmail.com>.
Hello,

if you copy our source code you need to respect the AL 2.0.

The license itself can be found here:
https://www.apache.org/licenses/LICENSE-2.0.html

And here is an overview of what you have to do to distribute
it as part of an other project:
http://www.inteist.com/2010/05/how-to-use-apache-2-0-in-commercial-products-explained-in-simple-terms/

The attribution should be copied from our NOTICE file.

Jörn




On 10/07/2014 06:02 AM, Gustavo Knuppe wrote:
> Hi,
>
> first I would like to thank this team that developed the library, I need to
> say it has lots of cool stuff :)
>
> I'm working on a independent port of the OpenNLP to C#, I wonder if I need
> to add anything else to the readme or license or if the information is
> enough.
>
> Project:
> https://github.com/knuppe/SharpNL
>
> Any comments and suggestions are welcomed
>
>
> Thanks
>
> Gustavo K.
>