opennlp-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Carlos Scheidecker <nando....@gmail.com>
Subject Re: MarkableFileInputStreamFactory
Date Mon, 19 May 2014 21:07:57 GMT
I am having the same issue Mark.

The class is not public so it has no visibility
inside opennlp.addons.modelbuilder.impls.GenericModelableImpl therefore it
cannot be built with Maven or resolved inside Eclipse.

I have also been looking at new commits to fix that and there were none.


On Mon, May 12, 2014 at 1:03 PM, Mark G <markg@apache.org> wrote:

> Does MarkableFileInputStreamFactory need to be package private? I am using
> it in an addon (modelbuilder-addon), I would like to either move it or make
> it a public class. Perhaps I should be using a different class altogether?
>
> I am using it like this
>
>      ObjectStream<String> lineStream =
>               new PlainTextByLineStream(new
> MarkableFileInputStreamFactory(params.getAnnotatedTrainingDataFile()),
> charset);
>       ObjectStream<NameSample> sampleStream = new
> NameSampleDataStream(lineStream);
>
> where getAnnotatedTrainingDataFile returns a java File object.
>
> thanks
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message