![]() |
LIMA
Libre Multilingual Analyzer — C++ API
|
#include </home/runner/work/lima/lima/deeplima/libs/static_graph/dict.h>
Public Types | |
| typedef T | value_t |
| typedef std::vector< T >::size_type | key_t |
Public Member Functions | |
| Dict (const std::vector< T > &v1, const std::vector< T > &v2={}) | |
| Dict (const T &UNK, const std::vector< T > &v1, const std::vector< T > &v2={}) | |
| template<class InputIt > | |
| Dict (InputIt begin, InputIt end) | |
| template<class InputIt , typename F > | |
| Dict (const T &UNK, InputIt begin, InputIt end, F f) | |
| template<class InputIt , typename F > | |
| Dict (const T &UNK, const T &EOS, InputIt begin, InputIt end, F f) | |
| template<class InputIt , typename F > | |
| Dict (const T &UNK, const T &EOS, const T &OTHER, InputIt begin, InputIt end, F f) | |
| template<class InputIt , typename F > | |
| Dict (InputIt begin, InputIt end, F f) | |
| Dict () | |
| const T & | get_value (key_t idx) const |
| key_t | get_idx (const T &val) const |
| virtual uint64_t | size () const |
| key_t | get_unk () const |
| std::string | to_string () |
| const std::unordered_map< T, key_t > & | get_v2i () const |
| virtual const std::string & | get_class_id () const |
| virtual c10::IValue | toIValue () const |
| virtual void | fromIValue (const c10::IValue &v) |
| void | fromIValue (const c10::IValue &v) |
| c10::IValue | toIValue () const |
| void | fromIValue (const c10::IValue &v) |
| c10::IValue | toIValue () const |
| void | fromIValue (const c10::IValue &v) |
| c10::IValue | toIValue () const |
| c10::IValue | toIValue () const |
| void | fromIValue (const c10::IValue &v) |
Public Member Functions inherited from deeplima::DictBase | |
| virtual | ~DictBase ()=default |
Static Public Member Functions | |
| static const std::string & | class_id () |
Protected Member Functions | |
| void | add (const T &val) |
Static Protected Member Functions | |
| static std::wstring | to_wstring (const std::wstring &s) |
| static std::u32string | to_wstring (char32_t ch) |
| static void | from_wstring (const std::wstring &src, std::wstring &k) |
| static void | from_wstring (const std::wstring &src, wchar_t &k) |
Protected Attributes | |
| std::unordered_map< T, key_t > | v2i |
| std::vector< T > | i2v |
Static Protected Attributes | |
| static const std::string | m_class_id |
| typedef std::vector<T>::size_type deeplima::Dict< T >::key_t |
| typedef T deeplima::Dict< T >::value_t |
|
inline |
|
inline |
|
inlineexplicit |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlineprotected |
|
inlinestatic |
|
inlinestaticprotected |
|
inlinestaticprotected |
|
virtual |
Implements deeplima::DictBase.
|
virtual |
Implements deeplima::DictBase.
|
virtual |
Implements deeplima::DictBase.
|
virtual |
Implements deeplima::DictBase.
|
virtual |
Implements deeplima::DictBase.
|
inlinevirtual |
Implements deeplima::DictBase.
|
inline |
|
inline |
|
inline |
|
inline |
|
inlinevirtual |
Implements deeplima::DictBase.
|
inline |
|
inlinestaticprotected |
|
inlinestaticprotected |
|
virtual |
Implements deeplima::DictBase.
|
virtual |
Implements deeplima::DictBase.
|
virtual |
Implements deeplima::DictBase.
|
virtual |
Implements deeplima::DictBase.
|
virtual |
Implements deeplima::DictBase.
|
protected |
|
staticprotected |
|
protected |