You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@mahout.apache.org by tammuz <ra...@gmail.com> on 2010/07/12 17:17:16 UTC

Re: Installing Mahout

Now I know what is the problem but I do not know the solution yet -but I
think it is a simple issue- 
the problem is that I have a french system in which the "." is replaced by
","
look at this error message:

junit.framework.ComparisonFailure: format expected:<nm{n=0 m=[1[.100, 2.200,
3.300] sd=0.]75}> but was:<nm{n=0 m=[1[,100, 2,200, 3,300] sd=0,]75}>

I do not know how to change this in linux
-- 
View this message in context: http://lucene.472066.n3.nabble.com/Installing-Mahout-tp870701p960593.html
Sent from the Mahout User List mailing list archive at Nabble.com.

Re: Installing Mahout

Posted by Alexander Hans <al...@ahans.de>.
> Now I know what is the problem but I do not know the solution yet -but I
> think it is a simple issue-
> the problem is that I have a french system in which the "." is replaced by
> ","
> look at this error message:

This should only be problematic with Strings. We've had this issue
multiple times when reading numbers from files. Depending on the locale
either a dot or comma is expected as delimiter.


> junit.framework.ComparisonFailure: format expected:<nm{n=0 m=[1[.100,
> 2.200,
> 3.300] sd=0.]75}> but was:<nm{n=0 m=[1[,100, 2,200, 3,300] sd=0,]75}>
>
> I do not know how to change this in linux

Either set the locale of your Linux system to something English (probably
not what you want, applications will speak English then etc.) or in your
Java program somewhere near the beginning call

Locale.setDefault(Locale.US);

This sets the locale to US.


HTH,

Alex

-- 
PGP Public Key: http://www.tu-ilmenau.de/~alha-in/ahans.asc
Fingerprint: E110 4CA3 288A 93F3 5237  E904 A85B 4B18 CFDC 63E3


Re: Installing Mahout

Posted by Sean Owen <sr...@gmail.com>.
Yep, exactly as I mentioned. This was something we fixed in the code a
while ago. You probably want to use the latest code from subversion
which would have that change.

On Mon, Jul 12, 2010 at 4:17 PM, tammuz <ra...@gmail.com> wrote:
>
> Now I know what is the problem but I do not know the solution yet -but I
> think it is a simple issue-
> the problem is that I have a french system in which the "." is replaced by
> ","
> look at this error message:
>
> junit.framework.ComparisonFailure: format expected:<nm{n=0 m=[1[.100, 2.200,
> 3.300] sd=0.]75}> but was:<nm{n=0 m=[1[,100, 2,200, 3,300] sd=0,]75}>
>
> I do not know how to change this in linux
> --
> View this message in context: http://lucene.472066.n3.nabble.com/Installing-Mahout-tp870701p960593.html
> Sent from the Mahout User List mailing list archive at Nabble.com.
>