com.basistech.rlp.solr
Class RLPPOSFilterFactory

java.lang.Object
  extended by BaseTokenFilterFactory
      extended by com.basistech.rlp.solr.RLPPOSFilterFactory

public class RLPPOSFilterFactory
extends BaseTokenFilterFactory

Factory for the POS (part-of-speech) Filter that passes only tokens with predetermined POS tags. This must be used in conjunction with RLPTokenizerFactory.


Constructor Summary
RLPPOSFilterFactory()
           
 
Method Summary
 TokenStream create(TokenStream input)
          Creates a POS (part-of-speech) filter.
 void inform(ResourceLoader loader)
          Specifies the list of allowed POS tags.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RLPPOSFilterFactory

public RLPPOSFilterFactory()
Method Detail

inform

public void inform(ResourceLoader loader)
Specifies the list of allowed POS tags. One attribute is supported in schema.xml for this factory class: The file is a plain text file that lists allowed POS tags, one per line. This attribute must be specified. Valid POS tags depend on the Base Linguistic language processor that you use.
The file path can be an absolute path, or a relative path to the solr/conf directory or the current working directory.

Parameters:
loader - SOLR resource loader.
See Also:
SolrResourceLoader

create

public TokenStream create(TokenStream input)
Creates a POS (part-of-speech) filter.

Parameters:
input - The input text.
Returns:
The POS filter.


Copyright © 2007-2008 Basis Technology Corporation. All Rights Reserved.