[prev in list] [next in list] [prev in thread] [next in thread] 

List:       wekalist
Subject:    Re: [Wekalist] Quoting strings from command line
From:       Mark Hall <mhall () pentaho ! com>
Date:       2011-03-28 6:56:05
Message-ID: 4D903105.8060707 () pentaho ! com
[Download RAW message or body]

On 03/25/2011 08:12 AM, andyatnabble wrote:
>
>
> andyatnabble wrote:
>>
>> I have a bunch of raw text files that I need to convert into tf-idf
>> vectors. Thus far, I have stored the entire contents  of the file as a
>> string attribute, and the class label of the file as a nominal attribute.
>> Now I use StringToWordVector to convert it to tf-idf.
>>
>> The files that I have got now contain quotes in them. So I use Utils.quote
>> to properly quote the text and convert to tf-idf.
>>
>> The question I have is, is there a way I could use quote strings from
>> command line? The rest of my codebase is in Perl, so I would rather not
>> use Java for creating 1 single file to call Utils.quote() just to quote my
>> strings.
>>
>> Thanks.

Why not just convert the quotes() routine in Perl?

_______________________________________________
Wekalist mailing list
Send posts to: Wekalist@list.scms.waikato.ac.nz
List info and subscription status: https://list.scms.waikato.ac.nz/mailman/listinfo/wekalist
List etiquette: http://www.cs.waikato.ac.nz/~ml/weka/mailinglist_etiquette.html
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic