mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-12-25 04:43:03 +03:00
consistent namespace
This commit is contained in:
parent
e7916239d5
commit
bf089b56ac
@ -28,7 +28,6 @@
|
||||
#include <xmlrpc-c/server_abyss.hpp>
|
||||
|
||||
using namespace Moses;
|
||||
using namespace MosesCmd;
|
||||
using namespace std;
|
||||
|
||||
typedef std::map<std::string, xmlrpc_c::value> params_t;
|
||||
@ -491,7 +490,7 @@ public:
|
||||
{
|
||||
// should the score breakdown be reported in a more structured manner?
|
||||
ostringstream buf;
|
||||
MosesCmd::OutputAllFeatureScores(path.GetScoreBreakdown(),buf);
|
||||
Moses::OutputAllFeatureScores(path.GetScoreBreakdown(),buf);
|
||||
nBestXMLItem["fvals"] = xmlrpc_c::value_string(buf.str());
|
||||
}
|
||||
|
||||
|
@ -55,12 +55,11 @@ POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
using namespace std;
|
||||
using namespace Moses;
|
||||
using namespace MosesCmd;
|
||||
|
||||
//keys
|
||||
enum gridkey {lmbr_p,lmbr_r,lmbr_prune,lmbr_scale};
|
||||
|
||||
namespace MosesCmd
|
||||
namespace Moses
|
||||
{
|
||||
|
||||
class Grid
|
||||
|
@ -53,9 +53,8 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
|
||||
using namespace std;
|
||||
using namespace Moses;
|
||||
using namespace MosesCmd;
|
||||
|
||||
namespace MosesCmd
|
||||
namespace Moses
|
||||
{
|
||||
|
||||
void OutputFeatureWeightsForHypergraph(std::ostream &outputSearchGraphStream)
|
||||
|
@ -51,9 +51,8 @@ POSSIBILITY OF SUCH DAMAGE.
|
||||
#include "IOWrapper.h"
|
||||
|
||||
using namespace std;
|
||||
using namespace Moses;
|
||||
|
||||
namespace MosesCmd
|
||||
namespace Moses
|
||||
{
|
||||
|
||||
IOWrapper::IOWrapper(const std::vector<FactorType> &inputFactorOrder
|
||||
|
@ -57,10 +57,6 @@ namespace Moses
|
||||
class ScoreComponentCollection;
|
||||
class Hypothesis;
|
||||
class Factor;
|
||||
}
|
||||
|
||||
namespace MosesCmd
|
||||
{
|
||||
|
||||
/** Helper class that holds misc variables to write data out to command line.
|
||||
*/
|
||||
|
@ -13,9 +13,8 @@
|
||||
#include <set>
|
||||
|
||||
using namespace std;
|
||||
using namespace Moses;
|
||||
|
||||
namespace MosesCmd
|
||||
namespace Moses
|
||||
{
|
||||
|
||||
size_t bleu_order = 4;
|
||||
|
@ -19,7 +19,7 @@
|
||||
|
||||
|
||||
|
||||
namespace MosesCmd
|
||||
namespace Moses
|
||||
{
|
||||
|
||||
class Edge;
|
||||
|
@ -10,12 +10,11 @@
|
||||
#include "mbr.h"
|
||||
|
||||
using namespace std;
|
||||
using namespace Moses;
|
||||
|
||||
namespace MosesCmd
|
||||
namespace Moses
|
||||
{
|
||||
|
||||
TranslationTask::TranslationTask(InputType* source, MosesCmd::IOWrapper &ioWrapper,
|
||||
TranslationTask::TranslationTask(InputType* source, Moses::IOWrapper &ioWrapper,
|
||||
bool outputSearchGraphSLF,
|
||||
boost::shared_ptr<HypergraphOutput<Manager> > hypergraphOutput) :
|
||||
m_source(source),
|
||||
|
@ -7,12 +7,8 @@
|
||||
|
||||
namespace Moses
|
||||
{
|
||||
class InputType;
|
||||
class OutputCollector;
|
||||
}
|
||||
|
||||
namespace MosesCmd
|
||||
{
|
||||
class InputType;
|
||||
class OutputCollector;
|
||||
|
||||
class IOWrapper;
|
||||
|
||||
@ -26,7 +22,7 @@ class TranslationTask : public Moses::Task
|
||||
|
||||
public:
|
||||
|
||||
TranslationTask(Moses::InputType* source, MosesCmd::IOWrapper &ioWrapper,
|
||||
TranslationTask(Moses::InputType* source, Moses::IOWrapper &ioWrapper,
|
||||
bool outputSearchGraphSLF,
|
||||
boost::shared_ptr<Moses::HypergraphOutput<Moses::Manager> > hypergraphOutput);
|
||||
|
||||
@ -39,7 +35,7 @@ public:
|
||||
|
||||
private:
|
||||
Moses::InputType* m_source;
|
||||
MosesCmd::IOWrapper &m_ioWrapper;
|
||||
Moses::IOWrapper &m_ioWrapper;
|
||||
|
||||
bool m_outputSearchGraphSLF;
|
||||
boost::shared_ptr<Moses::HypergraphOutput<Moses::Manager> > m_hypergraphOutput;
|
||||
|
Loading…
Reference in New Issue
Block a user