Hello,
Here is my code:
public List<MyPythonTuple> TextRazorTagger(string str)
{
List<MyPythonTuple> ret = new List<MyPythonTuple>();
try
{
IronPython.Runtime.List results = textrazortagger.tagger(str);
foreach (IronPython.Runtime.PythonTuple tuple in results)
{
string strWord = (string)tuple[0];
string strPos = (string)tuple[1];
if (strPos.Length == 0)
{
continue;
}
MyPythonTuple myResult = new MyPythonTuple();
myResult.Word = strWord;
myResult.Pos = strPos;
ret.Add(myResult);
}
}
catch (Exception ex)
{
throw new Exception(ex.Message);
}
return ret;
}
tuple1 returns an empty string.
Thanks,
William Johnston
From: Slide
Sent: Tuesday, December 15, 2015 5:13 PM
To: William Johnston ; [email protected]
Subject: Re: [Ironpython-users] debug C# IronPython app?
Microsoft isn't really involved with IronPython anymore, it's a completely open
source project with no developers from MS really spending time on it (Dino does
help out). Providing some code might allow someone on this list to help out.
slide
On Tue, Dec 15, 2015 at 1:53 PM William Johnston <[email protected]> wrote:
Hello,
A C# DLR app is not returning results correctly. (A part of speech tagger is
returning an empty string for the actual pos for certain strings.) (The second
PythonTuple value from an IronPython List is empty.)
Howver, the Python script does run from a Python Shell.
How would I go about debugging the app?
Do you know if Microsoft provides paid support?
Thanks.
Regards,
William Johnston
_______________________________________________
Ironpython-users mailing list
[email protected]
https://mail.python.org/mailman/listinfo/ironpython-users
_______________________________________________
Ironpython-users mailing list
[email protected]
https://mail.python.org/mailman/listinfo/ironpython-users