LIMA
Libre Multilingual Analyzer — C++ API
Loading...
Searching...
No Matches
deeplima::DependencyParser::TokenIterator Class Reference

#include <deeplima/dependency_parser.h>

Public Member Functions

 TokenIterator (const StringIndex &stridx, const std::vector< token_with_analysis_t > &buffer, std::shared_ptr< StdMatrix< uint32_t > > heads, size_t offset, size_t end, const std::vector< std::string > *rel_names=nullptr)
 
bool end () const
 
token_flags_t flags () const
 
uint16_t token_offset () const
 
uint16_t token_len () const
 
uint32_t form_idx () const
 
uint32_t lemma_idx () const
 
uint32_t head () const
 
uint32_t rel () const
 
const char * deprel () const
 
const char * form () const
 
const char * lemma () const
 
uint8_t mwt_len () const
 
const char * mwt_surface () const
 
void next ()
 
void reset (size_t position=0)
 
size_t position () const
 
uint8_t token_class (size_t cls_idx) const
 

Detailed Description

Definition at line 130 of file dependency_parser.h.

Constructor & Destructor Documentation

◆ TokenIterator()

deeplima::DependencyParser::TokenIterator::TokenIterator ( const StringIndex &  stridx,
const std::vector< token_with_analysis_t > &  buffer,
std::shared_ptr< StdMatrix< uint32_t > >  heads,
size_t  offset,
size_t  end,
const std::vector< std::string > *  rel_names = nullptr 
)
inline

Definition at line 141 of file dependency_parser.h.

Member Function Documentation

◆ deprel()

const char * deeplima::DependencyParser::TokenIterator::deprel ( ) const
inline

Definition at line 197 of file dependency_parser.h.

◆ end()

bool deeplima::DependencyParser::TokenIterator::end ( ) const
inline

Definition at line 153 of file dependency_parser.h.

◆ flags()

token_flags_t deeplima::DependencyParser::TokenIterator::flags ( ) const
inline

Definition at line 158 of file dependency_parser.h.

◆ form()

const char * deeplima::DependencyParser::TokenIterator::form ( ) const
inline

Definition at line 206 of file dependency_parser.h.

◆ form_idx()

uint32_t deeplima::DependencyParser::TokenIterator::form_idx ( ) const
inline

Definition at line 174 of file dependency_parser.h.

◆ head()

uint32_t deeplima::DependencyParser::TokenIterator::head ( ) const
inline

Definition at line 185 of file dependency_parser.h.

◆ lemma()

const char * deeplima::DependencyParser::TokenIterator::lemma ( ) const
inline

Definition at line 213 of file dependency_parser.h.

◆ lemma_idx()

uint32_t deeplima::DependencyParser::TokenIterator::lemma_idx ( ) const
inline

Definition at line 179 of file dependency_parser.h.

◆ mwt_len()

uint8_t deeplima::DependencyParser::TokenIterator::mwt_len ( ) const
inline

Definition at line 222 of file dependency_parser.h.

◆ mwt_surface()

const char * deeplima::DependencyParser::TokenIterator::mwt_surface ( ) const
inline

Definition at line 227 of file dependency_parser.h.

◆ next()

void deeplima::DependencyParser::TokenIterator::next ( )
inline

Definition at line 232 of file dependency_parser.h.

◆ position()

size_t deeplima::DependencyParser::TokenIterator::position ( ) const
inline

Definition at line 242 of file dependency_parser.h.

◆ rel()

uint32_t deeplima::DependencyParser::TokenIterator::rel ( ) const
inline

Definition at line 191 of file dependency_parser.h.

◆ reset()

void deeplima::DependencyParser::TokenIterator::reset ( size_t  position = 0)
inline

Definition at line 237 of file dependency_parser.h.

◆ token_class()

uint8_t deeplima::DependencyParser::TokenIterator::token_class ( size_t  cls_idx) const
inline

Definition at line 247 of file dependency_parser.h.

◆ token_len()

uint16_t deeplima::DependencyParser::TokenIterator::token_len ( ) const
inline

Definition at line 169 of file dependency_parser.h.

◆ token_offset()

uint16_t deeplima::DependencyParser::TokenIterator::token_offset ( ) const
inline

Definition at line 164 of file dependency_parser.h.


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