Re: MeCab UTF-8 Decoding Problem

2013-06-29 Thread Steven D'Aprano
On Sat, 29 Jun 2013 04:29:23 -0700, fobos3 wrote: > Hi, > > I am trying to use a program called MeCab, which does syntax analysis on > Japanese text. The problem I am having is that it returns a byte string > and if I try to print it, it prints question marks for almost all > characters. However,

Re: MeCab UTF-8 Decoding Problem

2013-06-29 Thread MRAB
On 29/06/2013 12:29, fob...@gmail.com wrote: Hi, I am trying to use a program called MeCab, which does syntax analysis on Japanese text. The problem I am having is that it returns a byte string and if I try to print it, it prints question marks for almost all characters. However, if I try to

Re: MeCab UTF-8 Decoding Problem

2013-06-29 Thread Terry Reedy
On 6/29/2013 11:32 AM, Terry Reedy wrote: I am trying to use a program called MeCab, which does syntax analysis on Japanese text. It is generally nice to give a link when asking about 3rd party software. https://code.google.com/p/mecab/ In this case, nearly all the non-boilerplate text is Jap

Re: MeCab UTF-8 Decoding Problem

2013-06-29 Thread Terry Reedy
On 6/29/2013 10:02 AM, Dave Angel wrote: On 06/29/2013 07:29 AM, fob...@gmail.com wrote: Hi, Using Python 2.7 on Linux, presumably? It'd be better to be explicit. I am trying to use a program called MeCab, which does syntax analysis on Japanese text. It is generally nice to give a link w

Re: MeCab UTF-8 Decoding Problem

2013-06-29 Thread Dave Angel
On 06/29/2013 07:29 AM, fob...@gmail.com wrote: Hi, Using Python 2.7 on Linux, presumably? It'd be better to be explicit. I am trying to use a program called MeCab, which does syntax analysis on Japanese text. The problem I am having is that it returns a byte string and if I try to print

Re: MeCab UTF-8 Decoding Problem

2013-06-29 Thread Giorgos Tzampanakis
On 2013-06-29, fob...@gmail.com wrote: > Hi, > > I am trying to use a program called MeCab, which does syntax analysis on > Japanese text. The problem I am having is that it returns a byte string > and if I try to print it, it prints question marks for almost all > characters. However, if I try to

MeCab UTF-8 Decoding Problem

2013-06-29 Thread fobos3
Hi, I am trying to use a program called MeCab, which does syntax analysis on Japanese text. The problem I am having is that it returns a byte string and if I try to print it, it prints question marks for almost all characters. However, if I try to use .decide, it throws an error. Here is my cod