Class Dictionary
In-memory structure for the dictionary (.dic) and affix (.aff) data of a hunspell dictionary.
Inherited Members
Namespace: Lucene.Net.Analysis.Hunspell
Assembly: Lucene.Net.Analysis.Common.dll
Syntax
public class Dictionary
Constructors
Dictionary(Stream, IList<Stream>, bool)
Creates a new Dictionary containing the information read from the provided Streams to hunspell affix and dictionary files. You have to dispose the provided Streams yourself.
Declaration
public Dictionary(Stream affix, IList<Stream> dictionaries, bool ignoreCase)
Parameters
Type | Name | Description |
---|---|---|
Stream | affix | Stream for reading the hunspell affix file (won't be disposed). |
IList<Stream> | dictionaries | Stream for reading the hunspell dictionary files (won't be disposed). |
bool | ignoreCase | ignore case? |
Exceptions
Type | Condition |
---|---|
IOException | Can be thrown while reading from the Streams |
Exception | Can be thrown if the content of the files does not meet expected formats |
Dictionary(Stream, Stream)
Creates a new Dictionary containing the information read from the provided Streams to hunspell affix and dictionary files. You have to dispose the provided Streams yourself.
Declaration
public Dictionary(Stream affix, Stream dictionary)
Parameters
Type | Name | Description |
---|---|---|
Stream | affix | Stream for reading the hunspell affix file (won't be disposed). |
Stream | dictionary | Stream for reading the hunspell dictionary file (won't be disposed). |
Exceptions
Type | Condition |
---|---|
IOException | Can be thrown while reading from the Streams |
Exception | Can be thrown if the content of the files does not meet expected formats |