Class SentenceTuple¶
Defined in File corpus_base.h
Class Documentation¶
-
class
SentenceTuple¶ -
Public Functions
-
SentenceTuple()¶ Creates an empty tuple with no associated future.
-
SentenceTuple(const SentenceTupleImpl &tupImpl)¶
-
SentenceTuple(std::future<SentenceTupleImpl> &&fImpl)¶
-
SentenceTupleImpl &
get() const¶
-
size_t
getId() const¶ Returns the sentence’s ID.
-
bool
isAltered() const¶ Returns whether this Tuple was altered or augmented from what was provided to Marian in input.
-
size_t
size() const¶ The size of the tuple, e.g.
two for parallel data with a source and target sentences.
-
bool
valid() const¶ confirms that the tuple has been populated with data
-
bool
empty() const¶ Checks whether the tuple is empty.
-
auto
begin() const¶
-
auto
end() const¶
-
auto
rbegin() const¶
-
auto
rend() const¶
-
const std::vector<float> &
getWeights() const¶ Get sentence weights.
For sentence-level weights the vector contains only one element.
-
const WordAlignment &
getAlignment() const¶
-