.. _program_listing_file_src_microsoft_cosmos.h: Program Listing for File cosmos.h ================================= |exhale_lsh| :ref:`Return to documentation for file ` (``src/microsoft/cosmos.h``) .. |exhale_lsh| unicode:: U+021B0 .. UPWARDS ARROW WITH TIP LEFTWARDS .. code-block:: cpp #pragma once #include #include #include namespace marian { template using Ptr = std::shared_ptr; namespace cosmos { class Embedder; class MarianEmbedder { private: Ptr embedder_; public: MarianEmbedder(); std::vector> embed(const std::string& input); bool load(const std::string& modelPath, const std::string& vocabPath); }; class MarianCosineScorer { private: Ptr embedder_; public: MarianCosineScorer(); std::vector score(const std::string& input1, const std::string& input2); bool load(const std::string& modelPath, const std::string& vocabPath); }; } }