com.ta.TagExtractAPI
Class FilteringPattern

java.lang.Object
  extended by com.ta.TagExtractAPI.FilteringPattern

public class FilteringPattern
extends java.lang.Object

For the specification of filtering based on a structural criterion.

See Also:
FilteringAPI

Field Summary
static int HEAD_IN_THESAURUS_NO
           
static int HEAD_IN_THESAURUS_NOT_PERT
           
static int HEAD_IN_THESAURUS_YES
           
 
Constructor Summary
FilteringPattern(java.lang.String label)
          Constructor of a pattern for structural criterion, to be used in method "apply" of FilteringAPI.
 
Method Summary
 int getHIT()
          getter method in order to restrict to terms in thesaurus
 java.lang.String getLabel()
          To obtain the label used during creation.
 boolean getTakeIt()
          getter method in order to flag/unflag a pattern.
 void setHIT(int i)
          setter method in order to restrict to terms in thesaurus
 void setTakeIt(boolean b)
          setter method in order to flag/unflag a pattern.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

HEAD_IN_THESAURUS_YES

public static final int HEAD_IN_THESAURUS_YES
See Also:
Constant Field Values

HEAD_IN_THESAURUS_NO

public static final int HEAD_IN_THESAURUS_NO
See Also:
Constant Field Values

HEAD_IN_THESAURUS_NOT_PERT

public static final int HEAD_IN_THESAURUS_NOT_PERT
See Also:
Constant Field Values
Constructor Detail

FilteringPattern

public FilteringPattern(java.lang.String label)
Constructor of a pattern for structural criterion, to be used in method "apply" of FilteringAPI.
A label is one of the following values:
"AllNouns", => all nouns are as candidates
"AllCommonNouns", => only common nouns
"AllproperNouns", => only proper nouns
"AllEpithetAdjectives", => only the adjectives that are linked to a noun
"MinimalNounPhrases", => only the smallest noun phrases
"MaximalNounPhrases", => only the broadest noun phrases
"N", => when a noun phrase is made of a noun
"AdjN", => when a noun phrase is Adj followed by a noun
"NAdj", => when a noun phrase is a noun followed by an adjective
"NN", => when a noun phrase is made of two nouns
"NaN", => a noun linked by "" and a noun
"NaGN", => a noun linked by "" and a noun phrase
"NdeN", => a noun linked by "de" and a noun
"NdeGN",=> a noun linked by "de" and a noun phrase
"NGP", => a noun and a prep phrase
"GNGP", => a noun phrase and a prep phrase
"NGPGP", => a noun and two prep phrases
"GNGPGP" => a noun phrase and two prep phrases

Method Detail

getLabel

public java.lang.String getLabel()
To obtain the label used during creation.


getTakeIt

public boolean getTakeIt()
getter method in order to flag/unflag a pattern.


setTakeIt

public void setTakeIt(boolean b)
setter method in order to flag/unflag a pattern.


getHIT

public int getHIT()
getter method in order to restrict to terms in thesaurus


setHIT

public void setHIT(int i)
setter method in order to restrict to terms in thesaurus