Rule_PREV2WD.java |
1 /* 2 * Copyright (c) 2001-2005, The University of Sheffield. 3 * 4 * This file is part of GATE (see http://gate.ac.uk/), and is free 5 * software, licenced under the GNU Library General Public License, 6 * Version 2, June 1991 (in the distribution as file licence.html, 7 * and also available at http://gate.ac.uk/gate/licence.html). 8 * 9 * HepTag was originally written by Mark Hepple, this version contains 10 * modifications by Valentin Tablan and Niraj Aswani. 11 * 12 * $Id: Rule_PREV2WD.java,v 1.1 2005/09/30 14:48:12 ian_roberts Exp $ 13 */ 14 15 package hepple.postag.rules; 16 17 import hepple.postag.*; 18 19 20 /** 21 * Title: HepTag 22 * Description: Mark Hepple's POS tagger 23 * Copyright: Copyright (c) 2001 24 * Company: University of Sheffield 25 * @author Mark Hepple 26 * @version 1.0 27 */ 28 29 public class Rule_PREV2WD extends Rule { 30 31 public Rule_PREV2WD() { 32 } 33 34 public boolean checkContext(POSTagger tagger) { 35 return (tagger.wordBuff[1].equals(context[0])); 36 } 37 }