Interface IMutableTagDictionary

Namespace
NOpenNLP.Tools.Postag
Assembly
NOpenNLP.Tools.dll

Interface that allows ITagDictionary entries to be added and removed. This can be used to induce the dictionary from training data.

public interface IMutableTagDictionary : ITagDictionary
Inherited Members

Properties

IsCaseSensitive

Whether if the dictionary is case sensitive or not

bool IsCaseSensitive { get; }

Property Value

bool

true if the dictionary is case sensitive

Methods

Put(string, params string[])

Associates the specified tags with the specified word. If the dictionary previously contained keys for the word, the old tags are replaced by the specified tags.

string[]? Put(string word, params string[] tags)

Parameters

word string

word with which the specified tags is to be associated

tags string[]

tags to be associated with the specified word

Returns

string[]

the previous tags associated with the word, or null if there was no mapping for word.