Gensim for .Net

1,132 views
Skip to first unread message

Samuel Leeman-Munk

unread,
Dec 22, 2013, 12:04:24 PM12/22/13
to gen...@googlegroups.com
Hi, I'm Sam.

I'm looking to use LSA in my C# project and I'm wondering what work has been done to make Gensim usable in .net?
I've tried pyrolite, but the network connection part of it takes five seconds for a task (converting of a given document into a conceptual feature vector) that should take more around a millisecond, making it unusable.
Has anyone had any more luck that could help point me in a right direction? Right now I'm considering trying IronPython to make the whole Gensim Library into a .Net IronPython library, but I'm not exactly sure how feasible that really is.

Let me know!

Radim Řehůřek

unread,
Dec 23, 2013, 5:22:36 AM12/23/13
to gen...@googlegroups.com
Hello Sam!

I never tried, but using gensim itself should be straightforward -- it's pure Python.

Trouble may come from the dependent libraries: NumPy and especially SciPy (+ BLAS linking for best performance). If you get these two running in .net, you're set :)

Radim

Samuel Leeman-Munk

unread,
Dec 23, 2013, 8:54:53 AM12/23/13
to gen...@googlegroups.com
Say I find NumPy and SciPy IronPython libraries, then I go to the Gensim python source and just copy/paste it all into a new C# project with IronPython.
There's nothing else to Gensim that I might be missing?

And seeing as you are the illustrious Řehůřek himself, to what extent could I keep the greater project I use my work here in proprietary if I agreed to release "Gensim.Net" itself as open source?
To be clear:
"Gensim.Net" <- I don't mind releasing code
My project which uses Gensim.Net <- My employers prohibit the release of source

Thanks so much!
Sam


--
You received this message because you are subscribed to a topic in the Google Groups "gensim" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/gensim/XTE29mDZK1c/unsubscribe.
To unsubscribe from this group and all its topics, send an email to gensim+un...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Radim Řehůřek

unread,
Dec 23, 2013, 6:07:10 PM12/23/13
to gen...@googlegroups.com

On Monday, December 23, 2013 2:54:53 PM UTC+1, Samuel Leeman-Munk wrote:

And seeing as you are the illustrious Řehůřek himself, to what extent could I keep the greater project I use my work here in proprietary if I agreed to release "Gensim.Net" itself as open source?
To be clear:
"Gensim.Net" <- I don't mind releasing code

depends what "Gensim.Net" is?

Gensim is licensed under LPGL:

People use gensim in proprietary solutions, that's no problem.

If you make worthwhile modifications to gensim itself, it's best to submit them back so I can merge them into the "official" repository on github.

HTH,
Radim

Samuel Leeman-Munk

unread,
Dec 27, 2013, 2:56:22 PM12/27/13
to gen...@googlegroups.com
Let's say "Gensim.Net" is a full or partial port of the Gensim Python code into C#. I would be all too happy to give it to the open source community once I've made it. If I then use this port in my proprietary project without further modification, does that meet the terms of the license? I'm having trouble with the license's legalese.

Radim Řehůřek

unread,
Dec 30, 2013, 1:05:44 PM12/30/13
to gen...@googlegroups.com
On Friday, December 27, 2013 8:56:22 PM UTC+1, Samuel Leeman-Munk wrote:
Let's say "Gensim.Net" is a full or partial port of the Gensim Python code into C#. I would be all too happy to give it to the open source community once I've made it. If I then use this port in 

 
You mean recoding everything in C#? That is an interesting proposition :)

Much of gensim's API and features are tailored to Python, but if a C# port makes more sense, why not. I don't even see much point calling it "gensim" -- it will be your project, with maintenance and support done by you, because I couldn't really support a C# port.


my proprietary project without further modification, does that meet the terms of the license? I'm having trouble with the license's legalese.


The wiki link I posted above summarizes the LGPL license nicely I believe, without much legalese. Using gensim in proprietary projects is fine.

My overall position is: I care more about people contributing back and crediting gensim properly. I don't mind people monetizing their own projects that use gensim internally or whatever. For me, gensim is about generating leads to my ML & IR consulting business.

Best,
Radim

Stephanus van Schalkwyk

unread,
Feb 14, 2014, 9:26:28 PM2/14/14
to gen...@googlegroups.com
Hi Samuel
Have you succeeded in installing Gensim to IronPython? If so, please share.
Thanks,
Steph

Samuel Leeman-Munk

unread,
Feb 14, 2014, 10:42:38 PM2/14/14
to gen...@googlegroups.com

I will let you know if I do. For the moment I have determined that it is not important enough to my project to be worth spending the time.

--

Stephanus van Schalkwyk

unread,
Feb 15, 2014, 10:03:06 PM2/15/14
to gen...@googlegroups.com
I've loaded iPython 64 and SciPy/Numpy. Just having a spot of trouble with the gensim setup.
If anyone could help with that it would be great. Currently using ZeroMQ to communicate from .NET to Python worker tasks in Winsows Services. Would be preferable to be all .NET...
Steph
Message has been deleted

Samuel Leeman-Munk

unread,
Apr 16, 2014, 3:05:48 PM4/16/14
to gen...@googlegroups.com
I'm interested in LSA in C#, yes, although my work in particular has moved away from it so I wouldn't have much free time to devote to the conversion.

Sam


On Wed, Apr 16, 2014 at 11:45 AM, Stephanus van Schalkwyk <svansc...@gmail.com> wrote:
Hi Sam
Are you still interested in LDA in C#?
Give me a ping. 


On Sunday, December 22, 2013 11:04:24 AM UTC-6, Samuel Leeman-Munk wrote:

--
You received this message because you are subscribed to a topic in the Google Groups "gensim" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/gensim/XTE29mDZK1c/unsubscribe.
To unsubscribe from this group and all its topics, send an email to gensim+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages