From: David A. <da...@gm...> - 2004-09-15 20:16:28
|
Hi, I'm having troubles trying out JAPE. Frustrating that even the TestJape.java within GATE won't do it for me. What I'd love to see is a simple JAPE implementation along these lines: FeatureMap params = Factory.newFeatureMap(); params.put("???", new URL("file:///d://test.jape"); Transducer transducer = (Transducer)Factory.createResource( "gate.creole.Transducer", params); Document doc = new URL("file:///d://test.doc"); transducer.transduce(doc, doc.getAnnotations(), doc.getAnnotations()); System.out.println(transducer.toString()); Please be so kind and correct/complete. Ta, David |