public class Shingle extends Object
Modifier and Type | Field and Description |
---|---|
int |
end
end position in the original text
|
int |
start
start position in the original text
|
String |
text
cleaned text
|
Constructor and Description |
---|
Shingle(List<Token> tokens) |
Shingle(String text) |
Shingle(String text,
int start,
int end) |
public String text
public int start
public int end
public Shingle(String text, int start, int end)
public Shingle(String text)
public boolean isEmpty()
public String getText()
public void setText(String text)
text
- the text to setpublic int getStart()
public void setStart(int start)
start
- the start to setpublic int getEnd()
public void setEnd(int end)
end
- the end to setCopyright © 2013. All rights reserved.