Option Metadata and Tags

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Option Metadata and Tags

Felipe Bravo
Hi guys,
I'm trying to implement a Weka Option using Tags declared as in the following example:

https://github.com/felipebravom/WekaDeepLearning4jNLP/blob/master/src/main/java/weka/filters/unsupervised/attribute/Dl4jStringToW2V.java#L94


However, I'm getting a string value for the preprocessor parameter instead of an integer in the configuration string, as shown below:

weka.filters.unsupervised.attribute.Dl4jStringToW2V -it 1 -ls 100 -mwf 5 -preprocessor "Common Preprocessor" -S 1 -i 1 -lc true -w 5

(The desired configuration would be: "-preprocessor 1")


Any ideas of how using Tag options using the @OptionMetadata  approach??

Thanks!
Felipe



_______________________________________________
Wekalist mailing list
Send posts to: [hidden email]
List info and subscription status: https://list.waikato.ac.nz/mailman/listinfo/wekalist
List etiquette: http://www.cs.waikato.ac.nz/~ml/weka/mailinglist_etiquette.html
Reply | Threaded
Open this post in threaded view
|

Re: Option Metadata and Tags

Eibe Frank-2
Administrator
I don’t think this is possible with @OptionMetadata. But isn’t it much nicer to have a meaningful string rather than a number?

Cheers,
Eibe

> On 6/06/2017, at 11:33 AM, Felipe Bravo <[hidden email]> wrote:
>
> Hi guys,
> I'm trying to implement a Weka Option using Tags declared as in the following example:
>
> https://github.com/felipebravom/WekaDeepLearning4jNLP/blob/master/src/main/java/weka/filters/unsupervised/attribute/Dl4jStringToW2V.java#L94
>
> This Option is latter handles using the @OptionMetadata tag as shown here:
>
> https://github.com/felipebravom/WekaDeepLearning4jNLP/blob/master/src/main/java/weka/filters/unsupervised/attribute/Dl4jStringToW2V.java#L365
>
> However, I'm getting a string value for the preprocessor parameter instead of an integer in the configuration string, as shown below:
>
> weka.filters.unsupervised.attribute.Dl4jStringToW2V -it 1 -ls 100 -mwf 5 -preprocessor "Common Preprocessor" -S 1 -i 1 -lc true -w 5
>
> (The desired configuration would be: "-preprocessor 1")
>
>
> Any ideas of how using Tag options using the @OptionMetadata  approach??
>
> Thanks!
> Felipe
>
>
> _______________________________________________
> Wekalist mailing list
> Send posts to: [hidden email]
> List info and subscription status: https://list.waikato.ac.nz/mailman/listinfo/wekalist
> List etiquette: http://www.cs.waikato.ac.nz/~ml/weka/mailinglist_etiquette.html

_______________________________________________
Wekalist mailing list
Send posts to: [hidden email]
List info and subscription status: https://list.waikato.ac.nz/mailman/listinfo/wekalist
List etiquette: http://www.cs.waikato.ac.nz/~ml/weka/mailinglist_etiquette.html
Reply | Threaded
Open this post in threaded view
|

Re: Option Metadata and Tags

Felipe Bravo
Thanks!
But how can I display a scroll bar of String options in the Explorer if the variable is not set as a Tag object?
Cheers,
Felipe

On Tue, Jun 6, 2017 at 11:59 AM, Eibe Frank <[hidden email]> wrote:
I don’t think this is possible with @OptionMetadata. But isn’t it much nicer to have a meaningful string rather than a number?

Cheers,
Eibe

> On 6/06/2017, at 11:33 AM, Felipe Bravo <[hidden email]> wrote:
>
> Hi guys,
> I'm trying to implement a Weka Option using Tags declared as in the following example:
>
> https://github.com/felipebravom/WekaDeepLearning4jNLP/blob/master/src/main/java/weka/filters/unsupervised/attribute/Dl4jStringToW2V.java#L94
>
> This Option is latter handles using the @OptionMetadata tag as shown here:
>
> https://github.com/felipebravom/WekaDeepLearning4jNLP/blob/master/src/main/java/weka/filters/unsupervised/attribute/Dl4jStringToW2V.java#L365
>
> However, I'm getting a string value for the preprocessor parameter instead of an integer in the configuration string, as shown below:
>
> weka.filters.unsupervised.attribute.Dl4jStringToW2V -it 1 -ls 100 -mwf 5 -preprocessor "Common Preprocessor" -S 1 -i 1 -lc true -w 5
>
> (The desired configuration would be: "-preprocessor 1")
>
>
> Any ideas of how using Tag options using the @OptionMetadata  approach??
>
> Thanks!
> Felipe
>
>
> _______________________________________________
> Wekalist mailing list
> Send posts to: [hidden email]
> List info and subscription status: https://list.waikato.ac.nz/mailman/listinfo/wekalist
> List etiquette: http://www.cs.waikato.ac.nz/~ml/weka/mailinglist_etiquette.html

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


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