All Downloads are FREE. Search and download functionalities are using the official Maven repository.

edu.stanford.nlp.util.IntUni Maven / Gradle / Ivy

Go to download

Stanford Parser processes raw text in English, Chinese, German, Arabic, and French, and extracts constituency parse trees.

There is a newer version: 3.9.2
Show newest version
package edu.stanford.nlp.util;

/**
 * Just a single integer
 *
 * @author Kristina Toutanova ([email protected])
 */

public class IntUni extends IntTuple {

  public IntUni() {
    super(1);
  }


  public IntUni(int src) {
    super(1);
    elements[0] = src;
  }


  public int getSource() {
    return elements[0];
  }

  public void setSource(int src) {
    elements[0] = src;
  }


  @Override
  public IntTuple getCopy() {
    IntUni nT = new IntUni(elements[0]);
    return nT;
  }

  public void add(int val) {
    elements[0] += val;
  }

  private static final long serialVersionUID = -7182556672628741200L;

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy