dragon.nlp.extract
Class BasicConceptFilter

java.lang.Object
  |
  +--dragon.nlp.extract.BasicConceptFilter
All Implemented Interfaces:
ConceptFilter

public class BasicConceptFilter
extends java.lang.Object
implements ConceptFilter

Basic Concept Filter

A utility for junk term filtering

Copyright: Copyright (c) 2005

Company: IST, Drexel University

Version:
1.0
Author:
Davis Zhou

Constructor Summary
BasicConceptFilter()
           
BasicConceptFilter(java.lang.String stoplistFile)
           
BasicConceptFilter(java.lang.String stoplistFile, java.lang.String supportSTYFile, java.lang.String excludeSTYFile)
           
 
Method Summary
 boolean addExcludedSTY(java.lang.String tui)
           
 boolean addMultiExcludedSTY(java.lang.String tuis)
           
 boolean addMultiSupportedSTY(java.lang.String tuis)
           
 boolean addSupportedSTY(java.lang.String tui)
           
 boolean keep(Concept concept)
          Tests if the specified concept object should be kept
 boolean keep(java.lang.String concept)
          Tests if the specified concept should be kept
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BasicConceptFilter

public BasicConceptFilter()

BasicConceptFilter

public BasicConceptFilter(java.lang.String stoplistFile)

BasicConceptFilter

public BasicConceptFilter(java.lang.String stoplistFile,
                          java.lang.String supportSTYFile,
                          java.lang.String excludeSTYFile)
Method Detail

keep

public boolean keep(Concept concept)
Description copied from interface: ConceptFilter
Tests if the specified concept object should be kept

Specified by:
keep in interface ConceptFilter
Parameters:
concept - the concept
Returns:
true if the concept object should be kept

keep

public boolean keep(java.lang.String concept)
Description copied from interface: ConceptFilter
Tests if the specified concept should be kept

Specified by:
keep in interface ConceptFilter
Parameters:
concept - the concept name
Returns:
true if the concept should be kept

addExcludedSTY

public boolean addExcludedSTY(java.lang.String tui)

addMultiExcludedSTY

public boolean addMultiExcludedSTY(java.lang.String tuis)

addSupportedSTY

public boolean addSupportedSTY(java.lang.String tui)

addMultiSupportedSTY

public boolean addMultiSupportedSTY(java.lang.String tuis)