Return-Path: X-Original-To: apmail-incubator-opennlp-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-opennlp-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id BE97E7FFC for ; Sat, 20 Aug 2011 01:34:45 +0000 (UTC) Received: (qmail 70861 invoked by uid 500); 20 Aug 2011 01:34:45 -0000 Delivered-To: apmail-incubator-opennlp-dev-archive@incubator.apache.org Received: (qmail 70792 invoked by uid 500); 20 Aug 2011 01:34:44 -0000 Mailing-List: contact opennlp-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: opennlp-dev@incubator.apache.org Delivered-To: mailing list opennlp-dev@incubator.apache.org Received: (qmail 70784 invoked by uid 99); 20 Aug 2011 01:34:44 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 20 Aug 2011 01:34:44 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of james.kosin@gmail.com designates 209.85.210.41 as permitted sender) Received: from [209.85.210.41] (HELO mail-pz0-f41.google.com) (209.85.210.41) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 20 Aug 2011 01:34:36 +0000 Received: by pzk4 with SMTP id 4so8077715pzk.28 for ; Fri, 19 Aug 2011 18:34:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=BmPqNkK0P5FGT+t/SB9eniXj6w6ta8RjEAlWC+VlI8s=; b=o/bAmTIDyQfAHJNBz60fOzO5HrmKkynPzGDoNTtDMF+5pBwoeALdv84wS4WNnxlDwd w8kJDScttGla80jZzvP9+vBfw8R0eK7EI6MnkBc9CvJcR0z+zI8tUA5J39GzCFFYvOTg bV1tQmS6ZQkqFNnThJ/Rrgfh64srJlA7Lx9Js= Received: by 10.142.131.20 with SMTP id e20mr19007wfd.181.1313804055805; Fri, 19 Aug 2011 18:34:15 -0700 (PDT) Received: from [192.168.159.3] (ip98-166-147-181.hr.hr.cox.net [98.166.147.181]) by mx.google.com with ESMTPS id a6sm27822wfg.15.2011.08.19.18.34.13 (version=SSLv3 cipher=OTHER); Fri, 19 Aug 2011 18:34:14 -0700 (PDT) Message-ID: <4E4F0F1B.8050507@gmail.com> Date: Fri, 19 Aug 2011 21:34:19 -0400 From: James Kosin User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:6.0) Gecko/20110812 Thunderbird/6.0 MIME-Version: 1.0 To: opennlp-dev@incubator.apache.org Subject: Re: Yuck, Null Pointer Exceptions References: <4E4DEA2D.5090908@gmail.com> <4E4DED32.7090608@gmail.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit William, The format for the % seems to be local specific, the tests still fail for me with the only difference of a '.' character instead of the ','. If this is correct, then the validation should also be converted to the same local format. James On 8/19/2011 5:38 AM, william.colen@gmail.com wrote: > Thanks. > > On Fri, Aug 19, 2011 at 1:57 AM, James Kosin wrote: > >> Never mind, >> >> New error now with latest. >> ---- >> Failed tests: >> testEvaluator(opennlp.tools.**chunker.**ChunkerDetailedFMeasureListene**rTest): >> null expected:<[processed 3 samples with 32 entities; found: 35 entities; >> correct: 28. >> TOTAL: precision: 80,00%; recall: 87,50%; F1: 83,58%. >> NP: precision: 90,00%; recall: 94,74%; F1: 92,31%. [target: >> 19; tp: 18; fp: 2] >> VP: precision: 75,00%; recall: 75,00%; F1: 75,00%. [target: >> 8; tp: 6; fp: 2] >> PP: precision: 57,14%; recall: 100,00%; F1: 72,73%. [target: >> 4; tp: 4; fp: 3] >> SBAR: precision: 0,00%; recall: 0,00%; F1: 0,]00%. [target: >> 1; t...> but was:<[Evaluated 3 samples with 32 entities; found: 35 entities; >> correct: 28. >> TOTAL: precision: 80.00%; recall: 87.50%; F1: 83.58%. >> NP: precision: 90.00%; recall: 94.74%; F1: 92.31%. [target: >> 19; tp: 18; fp: 2] >> VP: precision: 75.00%; recall: 75.00%; F1: 75.00%. [target: >> 8; tp: 6; fp: 2] >> PP: precision: 57.14%; recall: 100.00%; F1: 72.73%. [target: >> 4; tp: 4; fp: 3] >> SBAR: precision: 0.00%; recall: 0.00%; F1: 0.]00%. >> [target: 1; t...> >> >> Tests run: 254, Failures: 1, Errors: 0, Skipped: 0 >> >> ---- >> I'll check back later... >> James >> >> On 8/19/2011 12:44 AM, James Kosin wrote: >> >>> William& Jorn, >>> >>> I'm getting null pointer exceptions now when running the evaluator for the >>> name finder. >>> The "Testing..." comment line is from the batch file I'm using... >>> everything after that is from the application run with "%JCMD% >>> TokenNameFinderEvaluator -encoding utf8 -model enNameFinder.model -data >>> testa.txt" >>> >>> ---- >>> Testing... on eng.testa >>> Loading Token Name Finder model ... done (0.419s) >>> Exception in thread "main" java.lang.NullPointerException >>> at opennlp.tools.util.eval.**Evaluator.**notifyMissclassified(** >>> Evaluator.java >>> :114) >>> at opennlp.tools.util.eval.**Evaluator.evaluateSample(** >>> Evaluator.java:70) >>> at opennlp.tools.util.eval.**Evaluator.evaluate(Evaluator.** >>> java:86) >>> at opennlp.tools.cmdline.**namefind.** >>> TokenNameFinderEvaluatorTool.**run(Token >>> NameFinderEvaluatorTool.java:**104) >>> at opennlp.tools.cmdline.CLI.**main(CLI.java:191) >>> current: 1.0 sent/s avg: 1.0 sent/s total: 1 sent >>> current: 0.0 sent/s avg: 0.5 sent/s total: 1 sent >>> current: 0.0 sent/s avg: 0.3 sent/s total: 1 sent >>> current: 0.0 sent/s avg: 0.2 sent/s total: 1 sent >>> current: 0.0 sent/s avg: 0.2 sent/s total: 1 sent >>> current: 0.0 sent/s avg: 0.2 sent/s total: 1 sent >>> current: 0.0 sent/s avg: 0.1 sent/s total: 1 sent >>> current: 0.0 sent/s avg: 0.1 sent/s total: 1 sent >>> current: 0.0 sent/s avg: 0.1 sent/s total: 1 sent >>> >>> ---- >>> James >>> >>