001 /** 002 * FeatureInfo.java 003 * jCOLIBRI2 framework. 004 * @author Juan A. Recio-García. 005 * GAIA - Group for Artificial Intelligence Applications 006 * http://gaia.fdi.ucm.es 007 * 15/06/2007 008 */ 009 package jcolibri.extensions.textual.IE.representation.info; 010 011 /** 012 * This class represents a feature. It's composed by: 013 * <ul> 014 * <li> feature: Feature name 015 * <li> value: Feature value 016 * <li> begin: begin position in the text 017 * <li> end: end position in the text 018 * </ul> 019 * <p> 020 * First version developed at: Robert Gordon University - Aberdeen & Facultad Informática, 021 * Universidad Complutense de Madrid (GAIA) 022 * </p> 023 * 024 * @author Juan Antonio Recio García 025 * @version 2.0 026 */ 027 public class FeatureInfo { 028 private String feature; 029 private String value; 030 private int begin; 031 private int end; 032 033 /** 034 * Creates a feature info object 035 */ 036 public FeatureInfo(String feature, String value, int begin, int end) 037 { 038 super(); 039 this.feature = feature; 040 this.value = value; 041 this.begin = begin; 042 this.end = end; 043 } 044 045 public String toString() 046 { 047 return "\n("+feature+","+value+")"; 048 } 049 050 /** 051 * @return Returns the begin. 052 */ 053 public int getBegin() 054 { 055 return begin; 056 } 057 058 /** 059 * @param begin The begin to set. 060 */ 061 public void setBegin(int begin) 062 { 063 this.begin = begin; 064 } 065 066 /** 067 * @return Returns the end. 068 */ 069 public int getEnd() 070 { 071 return end; 072 } 073 074 /** 075 * @param end The end to set. 076 */ 077 public void setEnd(int end) 078 { 079 this.end = end; 080 } 081 082 /** 083 * @return Returns the feature. 084 */ 085 public String getFeature() 086 { 087 return feature; 088 } 089 090 /** 091 * @param feature The feature to set. 092 */ 093 public void setFeature(String feature) 094 { 095 this.feature = feature; 096 } 097 098 /** 099 * @return Returns the value. 100 */ 101 public String getValue() 102 { 103 return value; 104 } 105 106 /** 107 * @param value The value to set. 108 */ 109 public void setValue(String value) 110 { 111 this.value = value; 112 } 113 114 }