Class DictionaryNameFinder

Namespace
NOpenNLP.Tools.Namefind
Assembly
NOpenNLP.Tools.dll

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

public class DictionaryNameFinder : ITokenNameFinder
Inheritance
DictionaryNameFinder
Implements
Inherited Members

Constructors

DictionaryNameFinder(Dictionary, string)

Initialized the current instance with he provided dictionary and a type.

public DictionaryNameFinder(Dictionary dictionary, string type = "default")

Parameters

dictionary Dictionary
type string

the name type used for the produced spans

Methods

ClearAdaptiveData()

Forgets all adaptive data which was collected during previous calls to one of the find methods.

This method is typical called at the end of a document.

public virtual void ClearAdaptiveData()

Find(string[])

Generates name tags for the given sequence, typically a sentence, returning token spans for any identified names.

public virtual Span[] Find(string[] textTokenized)

Parameters

textTokenized string[]

Returns

Span[]

an array of spans for each of the names identified.