Download mosesdecoder/OnDiskPt/OnDiskQuery.h from suricodes/hindi-sindhi-docker: direct link, hf CLI and curl.
- Browser
- Download file 721 Bytes
-
https://huggingface.co/spaces/suricodes/hindi-sindhi-docker/resolve/main/mosesdecoder/OnDiskPt/OnDiskQuery.h
- Command line
-
hf download hf://spaces/suricodes/hindi-sindhi-docker/mosesdecoder/OnDiskPt/OnDiskQuery.h
-
curl -L -o OnDiskQuery.h https://huggingface.co/spaces/suricodes/hindi-sindhi-docker/resolve/main/mosesdecoder/OnDiskPt/OnDiskQuery.h
721 Bytes
| namespace OnDiskPt | |
| { | |
| class OnDiskQuery | |
| { | |
| private: | |
| OnDiskWrapper &m_wrapper; | |
| public: | |
| OnDiskQuery(OnDiskWrapper &wrapper):m_wrapper(wrapper) {} | |
| void Tokenize(Phrase &phrase, | |
| const std::string &token, | |
| bool addSourceNonTerm, | |
| bool addTargetNonTerm); | |
| SourcePhrase Tokenize(const std::vector<std::string>& tokens); | |
| const PhraseNode *Query(const SourcePhrase& sourcePhrase); | |
| inline const PhraseNode *Query(const std::vector<std::string>& tokens) { | |
| return Query(Tokenize(tokens)); | |
| } | |
| }; | |
| } | |