opennlp.tools.namefind
Interface DocumentNameFinder
public interface DocumentNameFinder
Name finding interface which processes an entire document allowing the name finder to use context
from the entire document.
- Author:
- tsmorton
|
Method Summary |
Span[][] |
find(java.lang.String[][] document)
Returns tokens span for the specified document of sentences and their tokens. |
find
Span[][] find(java.lang.String[][] document)
- Returns tokens span for the specified document of sentences and their tokens.
Span start and end indices are relitive to the sentence they are in.
For example, a span identifying a name consisting of the first and second word of the second sentence would
be 0..2 and be referenced as spans[1][0].
- Parameters:
document - An array of tokens for each sentence of a document.
- Returns:
- The token spans for each sentence of the specified document.
Copyright 2008 Jason Baldridge, Gann Bierner, and Thomas Morton. All Rights Reserved.