/* * book.jape * * Copyright (c) 1998-2004, The University of Sheffield. * * This file is part of GATE (see http://gate.ac.uk/), and is free * software, licenced under the GNU Library General Public License, * Version 2, June 1991 (in the distribution as file licence.html, * and also available at http://gate.ac.uk/gate/licence.html). * * Diana Maynard, 19 April 2002 * * $Id: email.jape,v 1.2 2004/07/21 16:57:11 akshay Exp $ */ Phase: Book Input: i blockquote Options: control = appelt Rule:Quote ( {blockquote} ):quote --> { //System.out.println(bindings.toString()); //System.out.println(bindings.containsKey("person")); //System.out.println(bindings.containsKey("mathematician")); gate.AnnotationSet quote = (gate.AnnotationSet)bindings.get("quote"); //System.out.println(person.toString()); gate.FeatureMap features = Factory.newFeatureMap(); features.put("rule", "Quote"); annotations.add(quote.firstNode(), quote.lastNode(), "Quote", features); //annotations.add(person.firstNode(), person.lastNode(), "Person", features); }