Class PlainTextDictionary
Dictionary represented by a text file.
Format allowed: 1 word per line: word1 word2 word3Implements
Inherited Members
Namespace: Lucene.Net.Search.Spell
Assembly: Lucene.Net.Suggest.dll
Syntax
public class PlainTextDictionary : IDictionary
Constructors
PlainTextDictionary(FileInfo)
Creates a dictionary based on a File.
NOTE: content is treated as UTF-8
Declaration
public PlainTextDictionary(FileInfo file)
Parameters
Type | Name | Description |
---|---|---|
FileInfo | file |
PlainTextDictionary(Stream)
Creates a dictionary based on an inputstream.
NOTE: content is treated as UTF-8
Declaration
public PlainTextDictionary(Stream dictFile)
Parameters
Type | Name | Description |
---|---|---|
Stream | dictFile |
PlainTextDictionary(TextReader)
Creates a dictionary based on a reader.
Declaration
public PlainTextDictionary(TextReader reader)
Parameters
Type | Name | Description |
---|---|---|
TextReader | reader |
Methods
GetEntryEnumerator()
Returns an enumerator over all the entries.
Declaration
public virtual IInputEnumerator GetEntryEnumerator()
Returns
Type | Description |
---|---|
IInputEnumerator | Enumerator |