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