Download mosesdecoder/phrase-extract/extract-mixed-syntax/AlignedSentenceSyntax.h from sleepyhead111/vllm_fairseq: direct link, hf CLI and curl.
- Browser
- Download file 1.31 kB
-
https://huggingface.co/sleepyhead111/vllm_fairseq/resolve/main/mosesdecoder/phrase-extract/extract-mixed-syntax/AlignedSentenceSyntax.h
- Command line
-
hf download hf://sleepyhead111/vllm_fairseq/mosesdecoder/phrase-extract/extract-mixed-syntax/AlignedSentenceSyntax.h
-
curl -L -o AlignedSentenceSyntax.h https://huggingface.co/sleepyhead111/vllm_fairseq/resolve/main/mosesdecoder/phrase-extract/extract-mixed-syntax/AlignedSentenceSyntax.h
1.31 kB
| /* | |
| * AlignedSentenceSyntax.h | |
| * | |
| * Created on: 26 Feb 2014 | |
| * Author: hieu | |
| */ | |
| class AlignedSentenceSyntax : public AlignedSentence | |
| { | |
| public: | |
| AlignedSentenceSyntax(int lineNum, | |
| const std::string &source, | |
| const std::string &target, | |
| const std::string &alignment); | |
| virtual ~AlignedSentenceSyntax(); | |
| void Create(const Parameter ¶ms); | |
| //virtual std::string Debug() const; | |
| protected: | |
| std::string m_sourceStr, m_targetStr, m_alignmentStr; | |
| SyntaxTree m_sourceTree, m_targetTree; | |
| void XMLParse(Phrase &output, | |
| SyntaxTree &tree, | |
| const std::string input, | |
| const Parameter ¶ms); | |
| void XMLParse(Phrase &output, | |
| SyntaxTree &tree, | |
| const pugi::xml_node &parentNode, | |
| const Parameter ¶ms); | |
| void CreateNonTerms(); | |
| void CreateNonTerms(ConsistentPhrase &cp, | |
| const SyntaxTree::Labels &sourceLabels, | |
| const SyntaxTree::Labels &targetLabels); | |
| void Populate(bool isSyntax, int mixedSyntaxType, const Parameter ¶ms, | |
| std::string line, Phrase &phrase, SyntaxTree &tree); | |
| }; | |