Python and .NET integration

前端 未结 3 2126
無奈伤痛
無奈伤痛 2021-02-15 18:23

I\'m currently looking at python because I really like the text parsing capabilities and the nltk library, but traditionally I am a .Net/C# programmer. I don\'t think IronPytho

3条回答
  •  眼角桃花
    2021-02-15 19:24

    NLTK is pure-python and thus can be made to run on IronPython easily. A search turned up this ticket - all one has to do is install a couple of extra Python libraries that don't come by default with IronPython.

    This is probably the easiest way for you to integrate. Otherwise, you'll have to either run Python as a subprocess, which sounds complex, or run Python as a server that answers your requests. This is probably the most scalable, though complex, approach. If you go this way, consider Twisted to simplify the server code.

    But do try IronPython first...

提交回复
热议问题