Download mosesdecoder/moses/Syntax/S2T/SChart.h from suricodes/hindi-sindhi-docker: direct link, hf CLI and curl.
- Browser
- Download file 942 Bytes
-
https://huggingface.co/spaces/suricodes/hindi-sindhi-docker/resolve/main/mosesdecoder/moses/Syntax/S2T/SChart.h
- Command line
-
hf download hf://spaces/suricodes/hindi-sindhi-docker/mosesdecoder/moses/Syntax/S2T/SChart.h
-
curl -L -o SChart.h https://huggingface.co/spaces/suricodes/hindi-sindhi-docker/resolve/main/mosesdecoder/moses/Syntax/S2T/SChart.h
942 Bytes
| namespace Moses | |
| { | |
| namespace Syntax | |
| { | |
| namespace S2T | |
| { | |
| class SChart | |
| { | |
| public: | |
| struct Cell { | |
| typedef boost::unordered_map<Word, SVertexStack, SymbolHasher, | |
| SymbolEqualityPred> TMap; | |
| typedef NonTerminalMap<SVertexStack> NMap; | |
| TMap terminalStacks; | |
| NMap nonTerminalStacks; | |
| }; | |
| SChart(std::size_t width); | |
| std::size_t GetWidth() const { | |
| return m_cells.size(); | |
| } | |
| const Cell &GetCell(std::size_t start, std::size_t end) const { | |
| return m_cells[start][end]; | |
| } | |
| Cell &GetCell(std::size_t start, std::size_t end) { | |
| return m_cells[start][end]; | |
| } | |
| private: | |
| std::vector<std::vector<Cell> > m_cells; | |
| }; | |
| } // S2T | |
| } // Syntax | |
| } // Moses | |