Download mosesdecoder/moses/Syntax/F2S/Forest.cpp from suricodes/hindi-sindhi-docker: direct link, hf CLI and curl.
- Browser
- Download file 454 Bytes
-
https://huggingface.co/spaces/suricodes/hindi-sindhi-docker/resolve/main/mosesdecoder/moses/Syntax/F2S/Forest.cpp
- Command line
-
hf download hf://spaces/suricodes/hindi-sindhi-docker/mosesdecoder/moses/Syntax/F2S/Forest.cpp
-
curl -L -o Forest.cpp https://huggingface.co/spaces/suricodes/hindi-sindhi-docker/resolve/main/mosesdecoder/moses/Syntax/F2S/Forest.cpp
454 Bytes
| namespace Moses | |
| { | |
| namespace Syntax | |
| { | |
| namespace F2S | |
| { | |
| Forest::~Forest() | |
| { | |
| Clear(); | |
| } | |
| void Forest::Clear() | |
| { | |
| for (std::vector<Vertex *>::iterator p = vertices.begin(); | |
| p != vertices.end(); ++p) { | |
| delete *p; | |
| } | |
| vertices.clear(); | |
| } | |
| Forest::Vertex::~Vertex() | |
| { | |
| for (std::vector<Hyperedge *>::iterator p = incoming.begin(); | |
| p != incoming.end(); ++p) { | |
| delete *p; | |
| } | |
| } | |
| } // F2S | |
| } // Syntax | |
| } // Moses | |