uk.ac.shef.dcs.oak.jate.core.feature
Class FeatureTermNest
java.lang.Object
uk.ac.shef.dcs.oak.jate.core.feature.AbstractFeature
uk.ac.shef.dcs.oak.jate.core.feature.FeatureTermNest
public class FeatureTermNest
- extends AbstractFeature
A feature store that contains information of nested terms. E.g., "hedgehog" is a
nested term in "European hedgehog". See details in K. Frantz et al 2000. This contains following information:
- total number of occurrences of all terms found in the corpus, which is the sum of occurrences of each term
- number of occurrences of each term found in the corpus
Method Summary |
java.util.Set<java.lang.Integer> |
getNestIdsOf(int nested)
|
java.util.Set<java.lang.Integer> |
getNestIdsOf(java.lang.String nested)
|
void |
termNestIn(int nested,
int nest)
Index a term with id "nested" as nested in a term with id "nest" |
void |
termNestIn(java.lang.String nested,
java.lang.String nest)
Index a term "nested" as nested in a term "nest" |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
FeatureTermNest
protected FeatureTermNest(GlobalIndex index)
getNestIdsOf
public java.util.Set<java.lang.Integer> getNestIdsOf(java.lang.String nested)
- Parameters:
nested
-
- Returns:
- the ids of terms in which the provided term is nested
getNestIdsOf
public java.util.Set<java.lang.Integer> getNestIdsOf(int nested)
- Parameters:
nested
-
- Returns:
- the ids of terms in which the provided term with id "nested" is nested
termNestIn
public void termNestIn(java.lang.String nested,
java.lang.String nest)
- Index a term "nested" as nested in a term "nest"
- Parameters:
nested
- nest
-
termNestIn
public void termNestIn(int nested,
int nest)
- Index a term with id "nested" as nested in a term with id "nest"
- Parameters:
nested
- nest
-