Lotta work here
This commit is contained in:
1 parent
d83d07a823
commit
d89095e49b
34 files changed
+3207
-186
No files matched your search
@@ -9,6 +9,7 @@
|
||||
#include <cstdint> // For uint16_t
|
||||
#include <queue>
|
||||
#include <functional>
|
||||
#include <Eigen/Dense>
|
||||
|
||||
namespace lm {
|
||||
|
||||
@@ -44,6 +45,10 @@ public:
|
||||
void set_normalization(bool enabled);
|
||||
void set_byte_fallback(bool enabled);
|
||||
|
||||
Eigen::VectorXi encode_to_vector(const std::string& text) const;
|
||||
std::string decode_from_vector(const Eigen::VectorXi& tokens) const;
|
||||
Eigen::VectorXf token_frequencies() const;
|
||||
|
||||
private:
|
||||
struct Impl;
|
||||
std::unique_ptr<Impl> pimpl_;
|
||||
|
||||
Reference in new issue
Block a user