/*
* 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_PREV1OR2OR3TAG.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_PREV1OR2OR3TAG extends Rule {
public Rule_PREV1OR2OR3TAG() {
}
@Override
public boolean checkContext(POSTagger tagger) {
return (tagger.lexBuff[0][0].equals(context[0]) ||
tagger.lexBuff[1][0].equals(context[0]) ||
tagger.lexBuff[2][0].equals(context[0]));
}
}