Python Forum
Passing parameters from C# to Python[for using in gensim] in Visual Studio 2017 - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: General Coding Help (https://python-forum.io/forum-8.html)
+--- Thread: Passing parameters from C# to Python[for using in gensim] in Visual Studio 2017 (/thread-10455.html)



Passing parameters from C# to Python[for using in gensim] in Visual Studio 2017 - ZoghbyAya - May-21-2018

Hi,

I am a C# programmer and new in Python. Now I am working on Python form Visual Studio 2017.

I have already written a program in C# to do some text processing tasks, but now I need to accomplish my work in python as it provides advanced functions for dealing with Natural Language Processing.

Specifically, I need to pass a List<List> parameter from my C# application to the Python application.

The passed parameter will be used instead of 'doc_term_matrix' in line 48 at the following python snippet:
[Image: 1273183]

Another issue to be handled is the casting of the different data types, as I want to import a List<List<double>>, as shown below, from C# to be used as the parameter returned from the 'dictionary.doc2bow(doc)' function in python.
[Image: 1273187]

I have no idea how to do so. So, please help me solve this issue.

Thanks in advance.

Aya.