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

#include </home/runner/work/lima/lima/deeplima/libs/conllu/treebank.h>

Public Member Functions

 Sentence ()
 
const Word & get_word (size_t idx) const
 
const Word & get_word (idx_t id) const
 
size_t calc_num_of_words (const Annotation &annot) const
 
size_t get_first_word_idx () const
 

Protected Attributes

size_t m_first_line
 
size_t m_first_token_line
 
size_t m_num_tokens
 
size_t m_first_word
 

Friends

class Annotation
 

Detailed Description

Definition at line 29 of file treebank.h.

Constructor & Destructor Documentation

◆ Sentence()

deeplima::CoNLLU::Sentence::Sentence ( )
inline

Definition at line 32 of file treebank.h.

Member Function Documentation

◆ calc_num_of_words()

size_t deeplima::CoNLLU::Sentence::calc_num_of_words ( const Annotation &  annot) const

Definition at line 25 of file treebank.cpp.

◆ get_first_word_idx()

size_t deeplima::CoNLLU::Sentence::get_first_word_idx ( ) const
inline

Definition at line 38 of file treebank.h.

◆ get_word() [1/2]

const Word & deeplima::CoNLLU::Sentence::get_word ( idx_t  id) const

◆ get_word() [2/2]

const Word & deeplima::CoNLLU::Sentence::get_word ( size_t  idx) const

Friends And Related Symbol Documentation

◆ Annotation

friend class Annotation
friend

Definition at line 49 of file treebank.h.

Member Data Documentation

◆ m_first_line

size_t deeplima::CoNLLU::Sentence::m_first_line
protected

Definition at line 44 of file treebank.h.

◆ m_first_token_line

size_t deeplima::CoNLLU::Sentence::m_first_token_line
protected

Definition at line 45 of file treebank.h.

◆ m_first_word

size_t deeplima::CoNLLU::Sentence::m_first_word
protected

Definition at line 47 of file treebank.h.

◆ m_num_tokens

size_t deeplima::CoNLLU::Sentence::m_num_tokens
protected

Definition at line 46 of file treebank.h.


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