Fork me on GitHub
  • API

    Show / Hide Table of Contents

    Class TokenInfoDictionaryWriter

    Inheritance
    object
    BinaryDictionaryWriter
    TokenInfoDictionaryWriter
    Inherited Members
    BinaryDictionaryWriter.m_implClazz
    BinaryDictionaryWriter.m_buffer
    BinaryDictionaryWriter.Put(string[])
    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 TokenInfoDictionaryWriter : BinaryDictionaryWriter

    Constructors

    TokenInfoDictionaryWriter(int)

    Declaration
    public TokenInfoDictionaryWriter(int size)
    Parameters
    Type Name Description
    int size

    Methods

    SetFST(FST<Int64>)

    Declaration
    public virtual void SetFST(FST<Int64> fst)
    Parameters
    Type Name Description
    FST<Int64> fst

    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.

    WriteFST(string)

    Declaration
    protected virtual void WriteFST(string filename)
    Parameters
    Type Name Description
    string filename
    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.