38 struct bpe_merge_pairs_impl;
49 rmm::mr::device_memory_resource* mr = rmm::mr::get_current_device_resource());
60 rmm::mr::device_memory_resource* mr = rmm::mr::get_current_device_resource());
66 friend bpe_merge_pairs_impl
const* get_bpe_merge_pairs_impl(
bpe_merge_pairs const&);
67 bpe_merge_pairs_impl* impl{};
98 rmm::mr::device_memory_resource* mr = rmm::mr::get_current_device_resource());
130 rmm::mr::device_memory_resource* mr = rmm::mr::get_current_device_resource());
An owning class to represent a string in device memory.
Given a column-view of strings type, an instance of this class provides a wrapper on this compound co...
Class definition for cudf::column.
column view class definitions
rmm::cuda_stream_view const get_default_stream()
Get the current default stream.
std::unique_ptr< cudf::column > byte_pair_encoding(cudf::strings_column_view const &input, bpe_merge_pairs const &merges_pairs, cudf::string_scalar const &separator=cudf::string_scalar(" "), rmm::mr::device_memory_resource *mr=rmm::mr::get_current_device_resource())
Byte pair encode the input strings.
std::unique_ptr< bpe_merge_pairs > load_merge_pairs(cudf::strings_column_view const &merge_pairs, rmm::cuda_stream_view stream=cudf::get_default_stream(), rmm::mr::device_memory_resource *mr=rmm::mr::get_current_device_resource())
Create a nvtext::bpe_merge_pairs from a strings column.
Class definitions for cudf::scalar.
Class definition for cudf::strings_column_view.
The table of merge pairs for the BPE encoder.
bpe_merge_pairs(std::unique_ptr< cudf::column > &&input, rmm::cuda_stream_view stream=cudf::get_default_stream(), rmm::mr::device_memory_resource *mr=rmm::mr::get_current_device_resource())
Construct a new bpe merge pairs object.
bpe_merge_pairs(cudf::strings_column_view const &input, rmm::cuda_stream_view stream=cudf::get_default_stream(), rmm::mr::device_memory_resource *mr=rmm::mr::get_current_device_resource())
Construct a new bpe merge pairs object.