Class RequestSentence¶
Defined in File request.h
Class Documentation¶
-
class
RequestSentence
¶ A RequestSentence provides a view to a sentence within a Request.
Existence of this class allows the sentences and associated information to be kept within Request, while batching mechanism (BatchingPool) compiles Batch from RequestSentence-s coming from different Requests.
Public Functions
-
size_t
numTokens
() const¶ Number of tokens in the segment this RequestSentence represents.
Used to order by length in batching.
-
Segment
getUnderlyingSegment
() const¶ Accessor to the segment represented by the RequestSentence.
-
void
completeSentence
(Ptr<History> history)¶ Forwards history to Request to set history corresponding to this RequestSentence.
Friends
-
bool
operator<
(const RequestSentence &a, const RequestSentence &b)¶
-
size_t