From 57af371c51c02c0473360988d6dfac08da817714 Mon Sep 17 00:00:00 2001 From: ilor <kailoran@gmail.com> Date: Mon, 22 Nov 2010 12:52:24 +0100 Subject: [PATCH] -ccessor typo fix --- libcorpus2/io/reader.h | 6 +++--- libcorpus2/lexeme.h | 6 +++--- libcorpus2/tag.h | 6 +++--- libcorpus2/tagset.h | 4 ++-- libpwrutils/pathsearch.h | 6 +++--- libpwrutils/sentence.h | 12 ++++++------ 6 files changed, 20 insertions(+), 20 deletions(-) diff --git a/libcorpus2/io/reader.h b/libcorpus2/io/reader.h index 80fbdb5..d071f1d 100644 --- a/libcorpus2/io/reader.h +++ b/libcorpus2/io/reader.h @@ -40,7 +40,7 @@ private: /** * Convenience class for readers that keep a buffer of chunks. Sentence - * and token accesors are based upon the chunk buffer. + * and token accessors are based upon the chunk buffer. * * A dervied class only neds to override ensure_more with a function that * fills the chunk buffer. @@ -68,12 +68,12 @@ protected: /** * Convenience class for readers that internally read sentences. The token - * accesor is based on the sentence buffer, so is the chunk accesor. + * accessor is based on the sentence buffer, so is the chunk accessor. * * A dervied class only neds to override actual_next_sentence with a * function that returns a new sentence. * - * Note that the chunk accesor might well read the entire input and return + * Note that the chunk accessor might well read the entire input and return * one huge chunk with all the sentences. */ class BufferedSentenceReader : public TokenReader diff --git a/libcorpus2/lexeme.h b/libcorpus2/lexeme.h index 0a508b1..e15b0fe 100644 --- a/libcorpus2/lexeme.h +++ b/libcorpus2/lexeme.h @@ -37,7 +37,7 @@ public: /// Helper creation function static Lexeme create(const UnicodeString& lemma, const Tag& tag); - /// Lemma accesor + /// Lemma accessor const UnicodeString& lemma() const { return lemma_; } @@ -47,12 +47,12 @@ public: lemma_ = l; } - /// UTF-8 lemma convenience accesor + /// UTF-8 lemma convenience accessor const std::string lemma_utf8() const { return PwrNlp::to_utf8(lemma_); } - /// Tag accesor + /// Tag accessor const Tag& tag() const { return tag_; } diff --git a/libcorpus2/tag.h b/libcorpus2/tag.h index 716188d..41a2369 100644 --- a/libcorpus2/tag.h +++ b/libcorpus2/tag.h @@ -59,7 +59,7 @@ public: int get_pos_index() const; - /// POS (part-of-speech) accesor + /// POS (part-of-speech) accessor mask_t get_pos() const { return pos_; } @@ -73,7 +73,7 @@ public: pos_ |= v; } - /// values accesor + /// values accessor mask_t get_values() const { return values_; } @@ -82,7 +82,7 @@ public: return values_ & mask; } - /// values accesor -- nonconst reference + /// values accessor -- nonconst reference void set_values(mask_t v) { values_ = v; } diff --git a/libcorpus2/tagset.h b/libcorpus2/tagset.h index 12b3e8a..ca4ad09 100644 --- a/libcorpus2/tagset.h +++ b/libcorpus2/tagset.h @@ -437,12 +437,12 @@ public: */ double size_extra() const; - /// Tagset ID accesor + /// Tagset ID accessor tagset_idx_t id() const { return id_; } - /// Tagset name accesor + /// Tagset name accessor std::string name() const { return name_; } diff --git a/libpwrutils/pathsearch.h b/libpwrutils/pathsearch.h index fdf187a..6a1696a 100644 --- a/libpwrutils/pathsearch.h +++ b/libpwrutils/pathsearch.h @@ -49,10 +49,10 @@ public: verbose_loading_ = v; } - /// Search path vector accesor + /// Search path vector accessor const std::vector<std::string>& get_search_path() const; - /// Search path string representation accesor + /// Search path string representation accessor std::string get_search_path_string() const; /// Seacrh path setter, vector of already-split paths @@ -62,7 +62,7 @@ public: /// separator char void set_search_path(const std::string &); - /// Separator accesor + /// Separator accessor const std::string& get_path_separator() const; /** diff --git a/libpwrutils/sentence.h b/libpwrutils/sentence.h index b2dbdcf..b502cfa 100644 --- a/libpwrutils/sentence.h +++ b/libpwrutils/sentence.h @@ -45,27 +45,27 @@ namespace PwrNlp { return tokens_.empty(); } - /// Size accesor + /// Size accessor size_t size() const { return tokens_.size(); } - /// Token accesor + /// Token accessor TT* operator[](size_t idx) { return tokens_[idx]; } - /// Token accesor, const + /// Token accessor, const const TT* operator[](size_t idx) const { return tokens_[idx]; } - /// Underlying vector accesor, const + /// Underlying vector accessor, const const std::vector<TT*>& tokens() const { return tokens_; } - /// Underlying vector accesor + /// Underlying vector accessor std::vector<TT*>& tokens() { return tokens_; } @@ -75,7 +75,7 @@ namespace PwrNlp { tokens_.push_back(t); } - /// convenience first token accesor + /// convenience first token accessor const TT* first_token() const { assert(!tokens_.empty()); return tokens_[0]; -- GitLab