Download mosesdecoder/phrase-extract/extract-mixed-syntax/SyntaxTree.h from sleepyhead111/vllm_fairseq: direct link, hf CLI and curl.
- Browser
- Download file 571 Bytes
-
https://huggingface.co/sleepyhead111/vllm_fairseq/resolve/main/mosesdecoder/phrase-extract/extract-mixed-syntax/SyntaxTree.h
- Command line
-
hf download hf://sleepyhead111/vllm_fairseq/mosesdecoder/phrase-extract/extract-mixed-syntax/SyntaxTree.h
-
curl -L -o SyntaxTree.h https://huggingface.co/sleepyhead111/vllm_fairseq/resolve/main/mosesdecoder/phrase-extract/extract-mixed-syntax/SyntaxTree.h
571 Bytes
| class Parameter; | |
| class SyntaxTree | |
| { | |
| public: | |
| typedef std::pair<int, int> Range; | |
| typedef std::vector<std::string> Labels; | |
| typedef std::map<Range, Labels> Coll; | |
| void Add(int startPos, int endPos, const std::string &label, const Parameter ¶ms); | |
| void AddToAll(const std::string &label); | |
| const Labels &Find(int startPos, int endPos) const; | |
| void SetHieroLabel(const std::string &label) { | |
| m_defaultLabels.push_back(label); | |
| } | |
| protected: | |
| Coll m_coll; | |
| Labels m_defaultLabels; | |
| }; | |