research/seq_flow_lite/tf_ops/projection_normalizer_util.cc
// Gets the string containing |num_chars| characters from |start| position.
Gets the string containing |num_chars| characters from |start| position.
Gets the string containing |num_chars| characters from |start| position .
std::string GetCharToken(const std::vector<std::string>& char_tokens,
                         size_t start, size_t num_chars) {
  std::string char_token = "";
  if (start + num_chars <= char_tokens.size()) {
    for (size_t i = 0; i < num_chars; ++i) {
      char_token.append(char_tokens[start + i]);
    }
  }
  return char_token;
}
std :: string GetCharToken ( const std :: vector < std :: string > & char_tokens , size_t start , size_t num_chars ) { std :: string char_token = " " ; if ( start + num_chars <= char_tokens . size ( ) ) { for ( size_t i = 0 ; i < num_chars ; ++ i ) { char_token . append ( char_tokens [ start + i ] ) ; } } return char_token ; }
Gets the string containing |num_chars| characters from |start| position.
Gets the string containing |num_chars| characters from |start| position .