libime
Public Member Functions | List of all members
libime::PinyinIME Class Reference

Provides shared data for PinyinContext. More...

#include <libime/pinyin/pinyinime.h>

Inheritance diagram for libime::PinyinIME:
Inheritance graph
[legend]
Collaboration diagram for libime::PinyinIME:
Collaboration graph
[legend]

Public Member Functions

 PinyinIME (std::unique_ptr< PinyinDictionary > dict, std::unique_ptr< UserLanguageModel > model)
 
PinyinFuzzyFlags fuzzyFlags () const
 
void setFuzzyFlags (PinyinFuzzyFlags flags)
 
size_t nbest () const
 
void setNBest (size_t n)
 
size_t beamSize () const
 
void setBeamSize (size_t n)
 
size_t frameSize () const
 
void setFrameSize (size_t n)
 
size_t partialLongWordLimit () const
 
void setPartialLongWordLimit (size_t n)
 
size_t wordCandidateLimit () const
 The maximum number of candidates that is a word. More...
 
void setWordCandidateLimit (size_t n)
 Set the maximum number of candidates that is a word. More...
 
void setScoreFilter (float maxDistance=std::numeric_limits< float >::max(), float minPath=-std::numeric_limits< float >::max())
 
void setShuangpinProfile (std::shared_ptr< const ShuangpinProfile > profile)
 
std::shared_ptr< const ShuangpinProfileshuangpinProfile () const
 
void setPreeditMode (PinyinPreeditMode mode)
 
PinyinPreeditMode preeditMode () const
 
void setCorrectionProfile (std::shared_ptr< const PinyinCorrectionProfile > profile)
 
std::shared_ptr< const PinyinCorrectionProfilecorrectionProfile () const
 
float maxDistance () const
 
float minPath () const
 
PinyinDictionarydict ()
 
const PinyinDictionarydict () const
 
const PinyinDecoderdecoder () const
 
UserLanguageModelmodel ()
 
const UserLanguageModelmodel () const
 
 FCITX_DECLARE_SIGNAL (PinyinIME, optionChanged, void())
 

Detailed Description

Provides shared data for PinyinContext.

Definition at line 28 of file pinyinime.h.

Member Function Documentation

◆ setWordCandidateLimit()

void libime::PinyinIME::setWordCandidateLimit ( size_t  n)

Set the maximum number of candidates that is a word.

Since 1.1.12

Definition at line 162 of file pinyinime.cpp.

◆ wordCandidateLimit()

size_t libime::PinyinIME::wordCandidateLimit ( ) const

The maximum number of candidates that is a word.

Limit the non single character candidates to avoid need to scroll/next page too many characters.

When is 0, it means no limit.

Since 1.1.12

Definition at line 157 of file pinyinime.cpp.


The documentation for this class was generated from the following files: