Does it work in Cpython? Does the print show both items that are in the
tuple as having values? Can you show the output from running it?

On Wed, Dec 16, 2015, 16:54 William Johnston <willi...@tenbase2.com> wrote:

>
>
> Here is the string that reproduces the error:
>
> [80 Strand, London WC2R ORL, England Penguin Ireland, 25 St. Stephen's
> Green, Dublin 2, Ireland (a division of Penguin Books Ltd) e Penguin Group
> (Australia), 707 Collins Street, Melbourne, Victoria 3008, Australia (a
> division of Pearson Australia Group Pty.]
>
> Thanks.
>
>
>
> *From:* William Johnston <willi...@tenbase2.com>
> *Sent:* Wednesday, December 16, 2015 6:42 PM
> *To:* ironpython-users@python.org
> *Subject:* Re: [Ironpython-users] debug C# IronPython app?
>
> Hello,
>
> Here is the Python code.
>
> The code works as expected most of the time.
>
> Regards,
> William Johnston
>
>
>
> *From:* Slide <slide.o....@gmail.com>
> *Sent:* Wednesday, December 16, 2015 6:19 PM
> *To:* William Johnston <willi...@tenbase2.com> ;
> ironpython-users@python.org
> *Subject:* Re: [Ironpython-users] debug C# IronPython app?
>
> Can you give the code for the tagger method?
>
> On Wed, Dec 16, 2015 at 4:13 PM William Johnston <willi...@tenbase2.com>
> wrote:
>
>>
>> Hello,
>>
>> Here it is:
>>
>> private dynamic textrazortagger = runtime.UseFile(@"E:\Users\William
>> Johnston\Documents\Visual Studio 2010\Projects\Visual Studio
>> Projects\TextRazor\pos.py");
>>
>> Sincerely,
>> William Johnston
>>
>>
>>
>> *From:* Slide <slide.o....@gmail.com>
>> *Sent:* Wednesday, December 16, 2015 5:37 PM
>> *To:* William Johnston <willi...@tenbase2.com> ;
>> ironpython-users@python.org
>> *Subject:* Re: [Ironpython-users] debug C# IronPython app?
>> Forgive my ignorance, but what is textrazortagger?
>>
>> On Wed, Dec 16, 2015 at 2:23 PM William Johnston <willi...@tenbase2.com>
>> wrote:
>>
>>>
>>> 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 <slide.o....@gmail.com>
>>> *Sent:* Tuesday, December 15, 2015 5:13 PM
>>> *To:* William Johnston <willi...@tenbase2.com> ;
>>> ironpython-users@python.org
>>> *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 <willi...@tenbase2.com>
>>> 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
>>>> Ironpython-users@python.org
>>>> https://mail.python.org/mailman/listinfo/ironpython-users
>>>>
>>> _______________________________________________
>>> Ironpython-users mailing list
>>> Ironpython-users@python.org
>>> https://mail.python.org/mailman/listinfo/ironpython-users
>>>
>> _______________________________________________
>> Ironpython-users mailing list
>> Ironpython-users@python.org
>> https://mail.python.org/mailman/listinfo/ironpython-users
>>
> ------------------------------
> _______________________________________________
> Ironpython-users mailing list
> Ironpython-users@python.org
> https://mail.python.org/mailman/listinfo/ironpython-users
> _______________________________________________
> Ironpython-users mailing list
> Ironpython-users@python.org
> https://mail.python.org/mailman/listinfo/ironpython-users
>
_______________________________________________
Ironpython-users mailing list
Ironpython-users@python.org
https://mail.python.org/mailman/listinfo/ironpython-users

Reply via email to