public class Subterm
extends java.lang.Object
History:
Constructor and Description |
---|
Subterm()
Create a subterm object using default value.
|
Subterm(java.lang.String subterm,
int startIndex,
int endIndex)
Create a subterm object by specifying subterm, stand and end position.
|
Modifier and Type | Method and Description |
---|---|
int |
GetEndIndex()
Get the end index (position) of the subterm.
|
int |
GetStartIndex()
Get the start index (position) of the subterm.
|
java.lang.String |
GetSubterm()
Get the term (word) of the subterm.
|
void |
SetEndIndex(int endIndex)
Set the end index (position) of the subterm.
|
void |
SetStartIndex(int startIndex)
Set the start index (position) of the subterm.
|
void |
SetSubterm(java.lang.String subterm)
Set the term (word) of the subterm.
|
java.lang.String |
ToString()
Get the string representation of subterm as term|start index|end index
|
public Subterm()
public Subterm(java.lang.String subterm, int startIndex, int endIndex)
subterm
- subterm (word) of the input term in the corpusstartIndex
- start position of the subterm in the input termendIndex
- end position of the subterm in the input termpublic void SetSubterm(java.lang.String subterm)
subterm
- word for the subtermpublic void SetStartIndex(int startIndex)
startIndex
- start position of the subterm in the input termpublic void SetEndIndex(int endIndex)
endIndex
- end position of the subterm in the input termpublic java.lang.String GetSubterm()
public int GetStartIndex()
public int GetEndIndex()
public java.lang.String ToString()
Submit a bug or feature
Copyright © 2015 National Library of Medicine