public class WeightedSpanTerm extends WeightedTerm
Constructor | Description |
---|---|
WeightedSpanTerm(float weight,
String term) |
|
WeightedSpanTerm(float weight,
String term,
boolean positionSensitive) |
Modifier and Type | Method | Description |
---|---|---|
void |
addPositionSpans(List<PositionSpan> positionSpans) |
|
boolean |
checkPosition(int position) |
Checks to see if this term is valid at
position . |
List<PositionSpan> |
getPositionSpans() |
|
boolean |
isPositionSensitive() |
|
void |
setPositionSensitive(boolean positionSensitive) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getTerm, getWeight, setTerm, setWeight
public WeightedSpanTerm(float weight, String term)
weight
- term
- public WeightedSpanTerm(float weight, String term, boolean positionSensitive)
weight
- term
- positionSensitive
- public boolean checkPosition(int position)
position
.position
- to check against valid term positionspublic void addPositionSpans(List<PositionSpan> positionSpans)
public boolean isPositionSensitive()
public void setPositionSensitive(boolean positionSensitive)
public List<PositionSpan> getPositionSpans()
Copyright © 2000-2018 Apache Software Foundation. All Rights Reserved.