| DeSR Dependency Parser |
#include <WordIndex.h>


Public Types | |
|
typedef unordered_map< const char *, unsigned, hash< const char * >, eqstr > | HashMap |
Public Member Functions | |
| WordIndex (WordIndex const &other) | |
| void | clear () |
| mapped_type | index (const key_type &key) |
Get the index associated to a word key. | |
| mapped_type | insert (const key_type &key) |
| Add a new word. | |
| std::pair< iterator, bool > | insert (const value_type &__obj) |
| Ensure we have our own copy of words. | |
| mapped_type & | operator[] (const key_type &_Keyval) |
| WordIndex & | operator= (const WordIndex &wi) |
Static Public Attributes | |
| static const unsigned | None = (unsigned)-1 |
Definition at line 64 of file WordIndex.h.
| mapped_type Tanl::Text::WordIndex::index | ( | const key_type & | key | ) | [inline] |
Get the index associated to a word key.
None if not present. Definition at line 90 of file WordIndex.h.
Referenced by Tanl::Attributes::get(), Tanl::Attributes::index(), and Parser::MultiSvmParser::train().