Refactor offline recognizer. (#94)
* Refactor offline recognizer. The purpose is to make it easier to support different types of models.
This commit is contained in:
@@ -80,6 +80,12 @@ bool SplitStringToIntegers(const std::string &full, const char *delim,
|
||||
return true;
|
||||
}
|
||||
|
||||
// This is defined for F = float and double.
|
||||
template <class F>
|
||||
bool SplitStringToFloats(const std::string &full, const char *delim,
|
||||
bool omit_empty_strings, // typically false
|
||||
std::vector<F> *out);
|
||||
|
||||
} // namespace sherpa_onnx
|
||||
|
||||
#endif // SHERPA_ONNX_CSRC_TEXT_UTILS_H_
|
||||
|
||||
Reference in New Issue
Block a user