opennlp.tools.namefind
Class DictionaryNameFinder

java.lang.Object
  extended by opennlp.tools.namefind.DictionaryNameFinder
All Implemented Interfaces:
TokenNameFinder

public class DictionaryNameFinder
extends java.lang.Object
implements TokenNameFinder

This is a dictionary based name finder, it scans text for names inside a dictionary.

Version:
$Revision: 1.8 $, $Date: 2007/06/29 12:11:55 $
Author:
Joern Kottmann

Constructor Summary
DictionaryNameFinder(Dictionary dictionary)
          Initializes the current instance.
 
Method Summary
 Span[] find(java.lang.String[] tokenStrings)
          Generates name tags for the given sequence, typically a sentence, returning token spans for any identified names.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DictionaryNameFinder

public DictionaryNameFinder(Dictionary dictionary)
Initializes the current instance.

Parameters:
dictionary -
Method Detail

find

public Span[] find(java.lang.String[] tokenStrings)
Description copied from interface: TokenNameFinder
Generates name tags for the given sequence, typically a sentence, returning token spans for any identified names.

Specified by:
find in interface TokenNameFinder
Parameters:
tokenStrings - an array of the tokens or words of the sequence, typically a sentence.
Returns:
an array of spans for each of the names identified.


Copyright 2008 Jason Baldridge, Gann Bierner, and Thomas Morton. All Rights Reserved.