/* * Copyright (c) 1995-2012, The University of Sheffield. See the file * COPYRIGHT.txt in the software or at http://gate.ac.uk/gate/COPYRIGHT.txt * * 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). * * HepTag was originally written by Mark Hepple, this version contains * modifications by Valentin Tablan and Niraj Aswani. * * $Id: Rule_NEXTWD.java 17530 2014-03-04 15:57:43Z markagreenwood $ */ package hepple.postag.rules; import hepple.postag.*; /** * Title: HepTag * Description: Mark Hepple's POS tagger * Copyright: Copyright (c) 2001 * Company: University of Sheffield * @author Mark Hepple * @version 1.0 */ public class Rule_NEXTWD extends Rule { public Rule_NEXTWD() { } @Override public boolean checkContext(POSTagger tagger) { return (tagger.wordBuff[4].equals(context[0])); } }