HasContext.java :  » Natural-Language-Processing » Part-Of-Speech » edu » stanford » nlp » ling » Java Open Source

Java Open Source » Natural Language Processing » Part Of Speech 
Part Of Speech » edu » stanford » nlp » ling » HasContext.java
package edu.stanford.nlp.ling;

/**
 * @author grenager
 */
public interface HasContext {

  /**
   * @return the String before the word
   */
  public String before();

  /**
   * Set the String before the word.
   * @param before the String before the word
   */
  public void setBefore(String before);

  /**
   * Prepend this String to the before String.
   *
   * @param before the String to be prepended
   */
  public void prependBefore(String before);

  /**
   * Return the String which is the unmangled word.
   *
   * @return the unmangled word
   */
  public String current();

  /**
   * Set the String which is the unmangled word.
   *
   * @param current the unmangled word
   */
  public void setCurrent(String current);

  /**
   * Return the String after the word.
   *
   * @return the String after the word
   */
  public String after();

  /**
   * Set the String after the word.
   *
   * @param after The String after the word
   */
  public void setAfter(String after);
  /**
   * Append this String to the current after String
   *
   * @param after The String to be prepended
   */
  public void appendAfter(String after);

}
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.