Class UnknownDictionaryWriter
Inherited Members
Namespace: Lucene.Net.Analysis.Ja.Util
Assembly: Lucene.Net.Analysis.Kuromoji.dll
Syntax
public class UnknownDictionaryWriter : BinaryDictionaryWriter
Constructors
UnknownDictionaryWriter(int)
Declaration
public UnknownDictionaryWriter(int size)
Parameters
| Type | Name | Description |
|---|---|---|
| int | size |
Methods
Put(string[])
Put the entry in map.
Declaration
public override int Put(string[] entry)
Parameters
| Type | Name | Description |
|---|---|---|
| string[] | entry |
Returns
| Type | Description |
|---|---|
| int | Current position of buffer, which will be wordId of next entry. |
Overrides
PutCharacterCategory(int, string)
Put mapping from unicode code point to character class.
Declaration
public virtual void PutCharacterCategory(int codePoint, string characterClassName)
Parameters
| Type | Name | Description |
|---|---|---|
| int | codePoint | Code point. |
| string | characterClassName | Character class name. |
PutInvokeDefinition(string, int, int, int)
Declaration
public virtual void PutInvokeDefinition(string characterClassName, int invoke, int group, int length)
Parameters
| Type | Name | Description |
|---|---|---|
| string | characterClassName | |
| int | invoke | |
| int | group | |
| int | length |
Write(string)
Write dictionary in file
Declaration
public override void Write(string baseDir)
Parameters
| Type | Name | Description |
|---|---|---|
| string | baseDir |
Overrides
Remarks
Dictionary format is: [Size of dictionary(int)], [entry:{left id(short)}{right id(short)}{word cost(short)}{length of pos info(short)}{pos info(char)}], [entry...], [entry...].....
Exceptions
| Type | Condition |
|---|---|
| IOException | If an I/O error occurs writing the dictionary files. |