Fork me on GitHub
  • API

    Show / Hide Table of Contents

    Interface IDictionary

    Dictionary interface for retrieving morphological data by id.

    Namespace: Lucene.Net.Analysis.Ja.Dict
    Assembly: Lucene.Net.Analysis.Kuromoji.dll
    Syntax
    public interface IDictionary

    Methods

    GetBaseForm(int, char[], int, int)

    Get base form of word.

    Declaration
    string GetBaseForm(int wordId, char[] surface, int off, int len)
    Parameters
    Type Name Description
    int wordId

    Word ID of token.

    char[] surface
    int off
    int len
    Returns
    Type Description
    string

    Base form (only different for inflected words, otherwise null).

    GetInflectionForm(int)

    Get inflection form of tokens.

    Declaration
    string GetInflectionForm(int wordId)
    Parameters
    Type Name Description
    int wordId

    Word ID of token.

    Returns
    Type Description
    string

    Inflection form, or null.

    GetInflectionType(int)

    Get inflection type of tokens.

    Declaration
    string GetInflectionType(int wordId)
    Parameters
    Type Name Description
    int wordId

    Word ID of token.

    Returns
    Type Description
    string

    Inflection type, or null.

    GetLeftId(int)

    Get left id of specified word.

    Declaration
    int GetLeftId(int wordId)
    Parameters
    Type Name Description
    int wordId

    Word ID of token.

    Returns
    Type Description
    int

    Left id.

    GetPartOfSpeech(int)

    Get Part-Of-Speech of tokens

    Declaration
    string GetPartOfSpeech(int wordId)
    Parameters
    Type Name Description
    int wordId

    Word ID of token.

    Returns
    Type Description
    string

    Part-Of-Speech of the token.

    GetPronunciation(int, char[], int, int)

    Get pronunciation of tokens

    Declaration
    string GetPronunciation(int wordId, char[] surface, int off, int len)
    Parameters
    Type Name Description
    int wordId

    Word ID of token.

    char[] surface
    int off
    int len
    Returns
    Type Description
    string

    Pronunciation of the token.

    GetReading(int, char[], int, int)

    Get reading of tokens.

    Declaration
    string GetReading(int wordId, char[] surface, int off, int len)
    Parameters
    Type Name Description
    int wordId

    Word ID of token.

    char[] surface
    int off
    int len
    Returns
    Type Description
    string

    Reading of the token.

    GetRightId(int)

    Get right id of specified word.

    Declaration
    int GetRightId(int wordId)
    Parameters
    Type Name Description
    int wordId

    Word ID of token.

    Returns
    Type Description
    int

    Right id.

    GetWordCost(int)

    Get word cost of specified word

    Declaration
    int GetWordCost(int wordId)
    Parameters
    Type Name Description
    int wordId

    Word ID of token.

    Returns
    Type Description
    int

    Word's cost.

    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.