Return-Path: X-Original-To: apmail-opennlp-dev-archive@www.apache.org Delivered-To: apmail-opennlp-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id A5C761113E for ; Mon, 19 May 2014 21:08:24 +0000 (UTC) Received: (qmail 46815 invoked by uid 500); 19 May 2014 21:08:24 -0000 Delivered-To: apmail-opennlp-dev-archive@opennlp.apache.org Received: (qmail 46767 invoked by uid 500); 19 May 2014 21:08:24 -0000 Mailing-List: contact dev-help@opennlp.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@opennlp.apache.org Delivered-To: mailing list dev@opennlp.apache.org Received: (qmail 46759 invoked by uid 99); 19 May 2014 21:08:24 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 19 May 2014 21:08:24 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of nando.nlp@gmail.com designates 209.85.212.175 as permitted sender) Received: from [209.85.212.175] (HELO mail-wi0-f175.google.com) (209.85.212.175) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 19 May 2014 21:08:20 +0000 Received: by mail-wi0-f175.google.com with SMTP id f8so4870333wiw.2 for ; Mon, 19 May 2014 14:07:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=lG7nAuYw5WBAVJ2YfDES33Vgl/Dcoa1wmdQqdmruow4=; b=mbaqG6z+2iTWua4IJ8Pioh64wDDvLtRu5I5FK6q6/svIBnx0LoK55hjOp39NmmyJLg 0qJFkT1IojFvY7LoWy3XcZxC/xUQS+nvex5nk6fKRYkESry9CPmlzcP0B+NjmeIILhHj KvmUpw/tpmoDp0W2HFChAV4xGsv0EHjBZ577GRc1Da+kwIBkPJi6wFo3sXJ8akmhVTEg aHETFEFmCXQKGcbEwICXWrMU8C/3/biNAlkYJTfR7UM2tYQsKPm8wItyu7OcjySR05Kf s98lHZyAS6hM/6/DSfOnK69sBSBnzFoiSNdPbLQjdBmSuarSKIv8zBkZ5PnZI/ugzoL2 AMvQ== MIME-Version: 1.0 X-Received: by 10.194.142.205 with SMTP id ry13mr5141796wjb.69.1400533677414; Mon, 19 May 2014 14:07:57 -0700 (PDT) Received: by 10.216.199.198 with HTTP; Mon, 19 May 2014 14:07:57 -0700 (PDT) In-Reply-To: References: Date: Mon, 19 May 2014 15:07:57 -0600 Message-ID: Subject: Re: MarkableFileInputStreamFactory From: Carlos Scheidecker To: dev@opennlp.apache.org Content-Type: multipart/alternative; boundary=089e0122f1b6569f4704f9c728f8 X-Virus-Checked: Checked by ClamAV on apache.org --089e0122f1b6569f4704f9c728f8 Content-Type: text/plain; charset=UTF-8 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 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 lineStream = > new PlainTextByLineStream(new > MarkableFileInputStreamFactory(params.getAnnotatedTrainingDataFile()), > charset); > ObjectStream sampleStream = new > NameSampleDataStream(lineStream); > > where getAnnotatedTrainingDataFile returns a java File object. > > thanks > --089e0122f1b6569f4704f9c728f8--