mirror of
https://github.com/browsermt/bergamot-translator.git
synced 2024-09-11 05:35:33 +03:00
Remove unused used types TokenRanges, SentenceTokenRanges, UPtr (#137)
This commit is contained in:
parent
87adb5d60a
commit
354e7ac6be
@ -11,16 +11,6 @@ namespace bergamot {
|
||||
|
||||
typedef marian::Words Segment;
|
||||
typedef std::vector<Segment> Segments;
|
||||
typedef std::vector<marian::string_view> TokenRanges;
|
||||
typedef std::vector<TokenRanges> SentenceTokenRanges;
|
||||
|
||||
/** @brief Creates unique_ptr any type, passes all arguments to any available
|
||||
* * constructor */
|
||||
template <class T, typename... Args> UPtr<T> UNew(Args &&... args) {
|
||||
return UPtr<T>(new T(std::forward<Args>(args)...));
|
||||
}
|
||||
|
||||
template <class T> UPtr<T> UNew(UPtr<T> p) { return UPtr<T>(p); }
|
||||
|
||||
/// Shortcut to AlignedVector<char> for byte arrays
|
||||
typedef AlignedVector<char> AlignedMemory;
|
||||
|
Loading…
Reference in New Issue
Block a user