Fork me on GitHub
  • API

    Show / Hide Table of Contents

    Class UnknownDictionaryWriter

    Inheritance
    object
    BinaryDictionaryWriter
    UnknownDictionaryWriter
    Inherited Members
    BinaryDictionaryWriter.m_implClazz
    BinaryDictionaryWriter.m_buffer
    BinaryDictionaryWriter.SharedPrefix(string, string)
    BinaryDictionaryWriter.AddMapping(int, int)
    BinaryDictionaryWriter.GetBaseFileName(string)
    BinaryDictionaryWriter.WriteTargetMap(string)
    BinaryDictionaryWriter.WritePosDict(string)
    BinaryDictionaryWriter.WriteDictionary(string)
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    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
    BinaryDictionaryWriter.Put(string[])

    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
    BinaryDictionaryWriter.Write(string)
    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.

    Back to top Copyright © 2024 The Apache Software Foundation, Licensed under the Apache License, Version 2.0
    Apache Lucene.Net, Lucene.Net, Apache, the Apache feather logo, and the Apache Lucene.Net project logo are trademarks of The Apache Software Foundation.
    All other marks mentioned may be trademarks or registered trademarks of their respective owners.