mahout-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sean Owen <>
Subject Re: SnowballAnalyzer
Date Tue, 20 Apr 2010 19:07:41 GMT
Yes, you can discover the available constructors and their parameters.

But I don't think that it make sense in general to just pass null / 0
to parameters or guess at dummy values. It'd be as likely to cause
even subtler errors.

I think what you have to do here is extend SnowballAnalyzer, where the
subclass has a no-arg constructor which calls super(String) with the
right argument.

On Tue, Apr 20, 2010 at 7:57 PM, Robin Anil <> wrote:
> +dev
> @Delroy: Well even if you did correct the spelling. I believe
> SnowballAnalyzer cannot be instantiated without a parameter like
> StandardAnalyzer.
> Constructor signature is: SnowballAnalyzer(String name);
> @dev: I am not a java reflection expert. But is there a way we can find the
> parameters of the constructor and automatically put some dummy values in it?
> Robin

View raw message