Python Forum
Passing parameters from C# to Python[for using in gensim] in Visual Studio 2017
Thread Rating:
  • 2 Vote(s) - 3.5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Passing parameters from C# to Python[for using in gensim] in Visual Studio 2017
#1
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.
Reply


Messages In This Thread
Passing parameters from C# to Python[for using in gensim] in Visual Studio 2017 - by ZoghbyAya - May-21-2018, 08:49 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Problems passing arguments containing spaces to bash script and then on to python kaustin 6 439 Apr-03-2024, 08:26 PM
Last Post: deanhystad
  How to receive two passed cmdline parameters and access them inside a Python script? pstein 2 372 Feb-17-2024, 12:29 PM
Last Post: deanhystad
  Python Coding in Power BI Visual vjrans 0 294 Jan-31-2024, 07:54 AM
Last Post: vjrans
  Python Alteryx QS-Passing pandas dataframe column inside SQL query where condition sanky1990 0 762 Dec-04-2023, 09:48 PM
Last Post: sanky1990
  How to set PYTHONPATH in Visual Studio Code? aupres 5 4,352 Aug-15-2023, 03:51 PM
Last Post: snippsat
  how do I open two instances of visual studio code with the same folder? SuchUmami 3 917 Jun-26-2023, 09:40 AM
Last Post: snippsat
  Visual Studio Code NewPi 3 1,079 May-16-2023, 11:13 PM
Last Post: snippsat
  Visual Studio Code venv ibm_db error mesi1000 7 2,858 Nov-13-2022, 12:36 AM
Last Post: snippsat
  debugging help on Visual Studio Code mg24 12 2,060 Oct-02-2022, 12:18 AM
Last Post: mg24
  Passing parameters with arrays and array definitions michael_lwt 1 961 Jul-07-2022, 09:45 PM
Last Post: Larz60+

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020