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

de.julielab.jsbd.Unit Maven / Gradle / Ivy

There is a newer version: 2.6.2
Show newest version
/** 
 * Unit.java
 * 
 * Copyright (c) 2015, JULIE Lab.
 * All rights reserved. This program and the accompanying materials 
 * are made available under the terms of the GNU Lesser General Public License (LGPL) v3.0
 *
 * Author: tomanek
 * 
 * Current version: 1.6	
 * Since version:   1.0
 *
 * Creation date: Aug 01, 2006 
 * 
 * The Unit object.
 * 
 **/

package de.julielab.jsbd;


public class Unit {

	public int begin; // start offset
	public int end;  // end offset
	public String rep; // string representation of this unit
	public String label;  // the predicted label
	
	
	public Unit(int begin, int end, String rep) {
		this.begin=begin;
		this.end=end;
		this.rep=rep;
		this.label="O";
	}

	
	public String toString() {
		return rep+": " + begin+"-"+end;
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy