public abstract class Token extends Object
Constructor and Description |
---|
Token(char[] surfaceForm,
int offset,
int length,
int startOffset,
int endOffset) |
Modifier and Type | Method and Description |
---|---|
int |
getEndOffset()
Get the end offset of the term in the analyzed text.
|
abstract POS.Tag |
getLeftPOS()
Get the left part of speech of the token.
|
int |
getLength() |
abstract Dictionary.Morpheme[] |
getMorphemes()
Get the
Dictionary.Morpheme decomposition of the token. |
int |
getOffset() |
int |
getPositionIncrement() |
int |
getPositionLength() |
abstract POS.Type |
getPOSType()
Get the
POS.Type of the token. |
abstract String |
getReading()
Get the reading of the token.
|
abstract POS.Tag |
getRightPOS()
Get the right part of speech of the token.
|
int |
getStartOffset()
Get the start offset of the term in the analyzed text.
|
char[] |
getSurfaceForm() |
String |
getSurfaceFormString() |
void |
setPositionIncrement(int posIncr) |
void |
setPositionLength(int posLen) |
public Token(char[] surfaceForm, int offset, int length, int startOffset, int endOffset)
public char[] getSurfaceForm()
public int getOffset()
public int getLength()
public String getSurfaceFormString()
public abstract POS.Tag getLeftPOS()
public abstract POS.Tag getRightPOS()
public abstract String getReading()
public abstract Dictionary.Morpheme[] getMorphemes()
Dictionary.Morpheme
decomposition of the token.public int getStartOffset()
public int getEndOffset()
public void setPositionIncrement(int posIncr)
public int getPositionIncrement()
public void setPositionLength(int posLen)
public int getPositionLength()
Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.