mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-09-11 11:25:40 +03:00
prune multiple files at once. Make up for failure in ems to give the full path of the gen table
This commit is contained in:
parent
4ec69fbfdf
commit
c80df1212e
@ -1,5 +1,22 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<CodeLite_Project Name="OnDiskPt" InternalType="Library">
|
||||
<Plugins>
|
||||
<Plugin Name="CMakePlugin">
|
||||
<![CDATA[[{
|
||||
"name": "Debug",
|
||||
"enabled": false,
|
||||
"buildDirectory": "build",
|
||||
"sourceDirectory": "$(ProjectPath)",
|
||||
"generator": "",
|
||||
"buildType": "",
|
||||
"arguments": [],
|
||||
"parentProject": ""
|
||||
}]]]>
|
||||
</Plugin>
|
||||
<Plugin Name="qmake">
|
||||
<![CDATA[00010001N0005Debug000000000000]]>
|
||||
</Plugin>
|
||||
</Plugins>
|
||||
<Description/>
|
||||
<Dependencies/>
|
||||
<VirtualDirectory Name="src"/>
|
||||
@ -27,6 +44,8 @@
|
||||
<File Name="../../../OnDiskPt/Word.cpp"/>
|
||||
<File Name="../../../OnDiskPt/Word.h"/>
|
||||
</VirtualDirectory>
|
||||
<Dependencies Name="Debug"/>
|
||||
<Dependencies Name="Release"/>
|
||||
<Settings Type="Static Library">
|
||||
<GlobalSettings>
|
||||
<Compiler Options="" C_Options="" Assembler="">
|
||||
@ -40,9 +59,9 @@
|
||||
<Configuration Name="Debug" CompilerType="GCC" DebuggerType="LLDB Debugger" Type="Static Library" BuildCmpWithGlobalSettings="append" BuildLnkWithGlobalSettings="append" BuildResWithGlobalSettings="append">
|
||||
<Compiler Options="-g" C_Options="-g" Assembler="" Required="yes" PreCompiledHeader="" PCHInCommandLine="no" PCHFlags="" PCHFlagsPolicy="0">
|
||||
<IncludePath Value="."/>
|
||||
<IncludePath Value="/Users/hieu/workspace/github/mosesdecoder"/>
|
||||
<IncludePath Value="/Users/hieu/workspace/github/mosesdecoder/phrase-extract"/>
|
||||
<IncludePath Value="/Users/hieu/workspace/github/mosesdecoder/boost/include"/>
|
||||
<IncludePath Value="../../.."/>
|
||||
<IncludePath Value="../../../phrase-extract"/>
|
||||
<IncludePath Value="../../../boost/include"/>
|
||||
<Preprocessor Value="MAX_NUM_FACTORS=4"/>
|
||||
</Compiler>
|
||||
<Linker Options="" Required="yes"/>
|
||||
@ -72,7 +91,7 @@
|
||||
<CustomPostBuild/>
|
||||
<CustomPreBuild/>
|
||||
</AdditionalRules>
|
||||
<Completion EnableCpp11="no">
|
||||
<Completion EnableCpp11="no" EnableCpp14="no">
|
||||
<ClangCmpFlagsC/>
|
||||
<ClangCmpFlags/>
|
||||
<ClangPP/>
|
||||
@ -110,7 +129,7 @@
|
||||
<CustomPostBuild/>
|
||||
<CustomPreBuild/>
|
||||
</AdditionalRules>
|
||||
<Completion EnableCpp11="no">
|
||||
<Completion EnableCpp11="no" EnableCpp14="no">
|
||||
<ClangCmpFlagsC/>
|
||||
<ClangCmpFlags/>
|
||||
<ClangPP/>
|
||||
@ -118,6 +137,4 @@
|
||||
</Completion>
|
||||
</Configuration>
|
||||
</Settings>
|
||||
<Dependencies Name="Debug"/>
|
||||
<Dependencies Name="Release"/>
|
||||
</CodeLite_Project>
|
||||
|
@ -1,5 +1,22 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<CodeLite_Project Name="extract-mixed-syntax" InternalType="Console">
|
||||
<Plugins>
|
||||
<Plugin Name="qmake">
|
||||
<![CDATA[00010001N0005Debug000000000000]]>
|
||||
</Plugin>
|
||||
<Plugin Name="CMakePlugin">
|
||||
<![CDATA[[{
|
||||
"name": "Debug",
|
||||
"enabled": false,
|
||||
"buildDirectory": "build",
|
||||
"sourceDirectory": "$(ProjectPath)",
|
||||
"generator": "",
|
||||
"buildType": "",
|
||||
"arguments": [],
|
||||
"parentProject": ""
|
||||
}]]]>
|
||||
</Plugin>
|
||||
</Plugins>
|
||||
<Description/>
|
||||
<Dependencies/>
|
||||
<VirtualDirectory Name="src"/>
|
||||
@ -43,6 +60,10 @@
|
||||
<File Name="../../../phrase-extract/OutputFileStream.cpp"/>
|
||||
<File Name="../../../phrase-extract/OutputFileStream.h"/>
|
||||
</VirtualDirectory>
|
||||
<Dependencies Name="Debug">
|
||||
<Project Name="util"/>
|
||||
</Dependencies>
|
||||
<Dependencies Name="Release"/>
|
||||
<Settings Type="Executable">
|
||||
<GlobalSettings>
|
||||
<Compiler Options="" C_Options="" Assembler="">
|
||||
@ -56,13 +77,14 @@
|
||||
<Configuration Name="Debug" CompilerType="GCC" DebuggerType="LLDB Debugger" Type="Executable" BuildCmpWithGlobalSettings="append" BuildLnkWithGlobalSettings="append" BuildResWithGlobalSettings="append">
|
||||
<Compiler Options="-g;-O0;-Wall" C_Options="-g;-O0;-Wall" Assembler="" Required="yes" PreCompiledHeader="" PCHInCommandLine="no" PCHFlags="" PCHFlagsPolicy="0">
|
||||
<IncludePath Value="."/>
|
||||
<IncludePath Value="/Users/hieu/workspace/github/mosesdecoder"/>
|
||||
<IncludePath Value="/Users/hieu/workspace/github/mosesdecoder/phrase-extract"/>
|
||||
<IncludePath Value="/Users/hieu/workspace/github/mosesdecoder/boost/include"/>
|
||||
<IncludePath Value="../../../"/>
|
||||
<IncludePath Value="../../../phrase-extract"/>
|
||||
<IncludePath Value="../../../boost/include"/>
|
||||
</Compiler>
|
||||
<Linker Options="" Required="yes">
|
||||
<LibraryPath Value="/Users/hieu/workspace/github/mosesdecoder/boost/lib64"/>
|
||||
<LibraryPath Value="/Users/hieu/workspace/github/mosesdecoder/contrib/other-builds/util/Debug"/>
|
||||
<LibraryPath Value="../../../boost/lib64"/>
|
||||
<LibraryPath Value="../../../contrib/other-builds/util/Debug"/>
|
||||
<LibraryPath Value="Debug"/>
|
||||
<Library Value="util"/>
|
||||
<Library Value="boost_iostreams"/>
|
||||
<Library Value="boost_program_options"/>
|
||||
@ -94,7 +116,7 @@
|
||||
<CustomPostBuild/>
|
||||
<CustomPreBuild/>
|
||||
</AdditionalRules>
|
||||
<Completion EnableCpp11="no">
|
||||
<Completion EnableCpp11="no" EnableCpp14="no">
|
||||
<ClangCmpFlagsC/>
|
||||
<ClangCmpFlags/>
|
||||
<ClangPP/>
|
||||
@ -133,7 +155,7 @@
|
||||
<CustomPostBuild/>
|
||||
<CustomPreBuild/>
|
||||
</AdditionalRules>
|
||||
<Completion EnableCpp11="no">
|
||||
<Completion EnableCpp11="no" EnableCpp14="no">
|
||||
<ClangCmpFlagsC/>
|
||||
<ClangCmpFlags/>
|
||||
<ClangPP/>
|
||||
@ -141,8 +163,4 @@
|
||||
</Completion>
|
||||
</Configuration>
|
||||
</Settings>
|
||||
<Dependencies Name="Debug">
|
||||
<Project Name="util"/>
|
||||
</Dependencies>
|
||||
<Dependencies Name="Release"/>
|
||||
</CodeLite_Project>
|
||||
|
@ -1,5 +1,22 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<CodeLite_Project Name="extract" InternalType="Console">
|
||||
<Plugins>
|
||||
<Plugin Name="qmake">
|
||||
<![CDATA[00010001N0005Debug000000000000]]>
|
||||
</Plugin>
|
||||
<Plugin Name="CMakePlugin">
|
||||
<![CDATA[[{
|
||||
"name": "Debug",
|
||||
"enabled": false,
|
||||
"buildDirectory": "build",
|
||||
"sourceDirectory": "$(ProjectPath)",
|
||||
"generator": "",
|
||||
"buildType": "",
|
||||
"arguments": [],
|
||||
"parentProject": ""
|
||||
}]]]>
|
||||
</Plugin>
|
||||
</Plugins>
|
||||
<Description/>
|
||||
<Dependencies/>
|
||||
<VirtualDirectory Name="src">
|
||||
@ -13,6 +30,8 @@
|
||||
<File Name="../../../phrase-extract/tables-core.cpp"/>
|
||||
<File Name="../../../phrase-extract/tables-core.h"/>
|
||||
</VirtualDirectory>
|
||||
<Dependencies Name="Debug"/>
|
||||
<Dependencies Name="Release"/>
|
||||
<Settings Type="Executable">
|
||||
<GlobalSettings>
|
||||
<Compiler Options="" C_Options="" Assembler="">
|
||||
@ -26,11 +45,11 @@
|
||||
<Configuration Name="Debug" CompilerType="GCC" DebuggerType="LLDB Debugger" Type="Executable" BuildCmpWithGlobalSettings="append" BuildLnkWithGlobalSettings="append" BuildResWithGlobalSettings="append">
|
||||
<Compiler Options="-g;-O0;-Wall" C_Options="-g;-O0;-Wall" Assembler="" Required="yes" PreCompiledHeader="" PCHInCommandLine="no" PCHFlags="" PCHFlagsPolicy="0">
|
||||
<IncludePath Value="."/>
|
||||
<IncludePath Value="/Users/hieu/workspace/github/mosesdecoder"/>
|
||||
<IncludePath Value="/Users/hieu/workspace/github/mosesdecoder/boost/include"/>
|
||||
<IncludePath Value="../../../"/>
|
||||
<IncludePath Value="../../../boost/include"/>
|
||||
</Compiler>
|
||||
<Linker Options="" Required="yes">
|
||||
<LibraryPath Value="/Users/hieu/workspace/github/mosesdecoder/boost/lib64"/>
|
||||
<LibraryPath Value="../../../boost/lib64"/>
|
||||
<Library Value="boost_iostreams"/>
|
||||
<Library Value="z"/>
|
||||
</Linker>
|
||||
@ -60,7 +79,7 @@
|
||||
<CustomPostBuild/>
|
||||
<CustomPreBuild/>
|
||||
</AdditionalRules>
|
||||
<Completion EnableCpp11="no">
|
||||
<Completion EnableCpp11="no" EnableCpp14="no">
|
||||
<ClangCmpFlagsC/>
|
||||
<ClangCmpFlags/>
|
||||
<ClangPP/>
|
||||
@ -99,7 +118,7 @@
|
||||
<CustomPostBuild/>
|
||||
<CustomPreBuild/>
|
||||
</AdditionalRules>
|
||||
<Completion EnableCpp11="no">
|
||||
<Completion EnableCpp11="no" EnableCpp14="no">
|
||||
<ClangCmpFlagsC/>
|
||||
<ClangCmpFlags/>
|
||||
<ClangPP/>
|
||||
@ -107,6 +126,4 @@
|
||||
</Completion>
|
||||
</Configuration>
|
||||
</Settings>
|
||||
<Dependencies Name="Debug"/>
|
||||
<Dependencies Name="Release"/>
|
||||
</CodeLite_Project>
|
||||
|
@ -1,5 +1,22 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<CodeLite_Project Name="lm" InternalType="Library">
|
||||
<Plugins>
|
||||
<Plugin Name="CMakePlugin">
|
||||
<![CDATA[[{
|
||||
"name": "Debug",
|
||||
"enabled": false,
|
||||
"buildDirectory": "build",
|
||||
"sourceDirectory": "$(ProjectPath)",
|
||||
"generator": "",
|
||||
"buildType": "",
|
||||
"arguments": [],
|
||||
"parentProject": ""
|
||||
}]]]>
|
||||
</Plugin>
|
||||
<Plugin Name="qmake">
|
||||
<![CDATA[00010001N0005Debug000000000000]]>
|
||||
</Plugin>
|
||||
</Plugins>
|
||||
<Description/>
|
||||
<Dependencies/>
|
||||
<VirtualDirectory Name="src"/>
|
||||
@ -27,6 +44,8 @@
|
||||
<File Name="../../../lm/virtual_interface.cc"/>
|
||||
<File Name="../../../lm/vocab.cc"/>
|
||||
</VirtualDirectory>
|
||||
<Dependencies Name="Debug"/>
|
||||
<Dependencies Name="Release"/>
|
||||
<Settings Type="Static Library">
|
||||
<GlobalSettings>
|
||||
<Compiler Options="" C_Options="" Assembler="">
|
||||
@ -40,9 +59,9 @@
|
||||
<Configuration Name="Debug" CompilerType="GCC" DebuggerType="LLDB Debugger" Type="Static Library" BuildCmpWithGlobalSettings="append" BuildLnkWithGlobalSettings="append" BuildResWithGlobalSettings="append">
|
||||
<Compiler Options="-g" C_Options="-g" Assembler="" Required="yes" PreCompiledHeader="" PCHInCommandLine="no" PCHFlags="" PCHFlagsPolicy="0">
|
||||
<IncludePath Value="."/>
|
||||
<IncludePath Value="/Users/hieu/workspace/github/mosesdecoder"/>
|
||||
<IncludePath Value="/Users/hieu/workspace/github/mosesdecoder/phrase-extract"/>
|
||||
<IncludePath Value="/Users/hieu/workspace/github/mosesdecoder/boost/include"/>
|
||||
<IncludePath Value="../../.."/>
|
||||
<IncludePath Value="../../../phrase-extract"/>
|
||||
<IncludePath Value="../../../boost/include"/>
|
||||
<Preprocessor Value="KENLM_MAX_ORDER=7"/>
|
||||
</Compiler>
|
||||
<Linker Options="" Required="yes"/>
|
||||
@ -72,7 +91,7 @@
|
||||
<CustomPostBuild/>
|
||||
<CustomPreBuild/>
|
||||
</AdditionalRules>
|
||||
<Completion EnableCpp11="no">
|
||||
<Completion EnableCpp11="no" EnableCpp14="no">
|
||||
<ClangCmpFlagsC/>
|
||||
<ClangCmpFlags/>
|
||||
<ClangPP/>
|
||||
@ -110,7 +129,7 @@
|
||||
<CustomPostBuild/>
|
||||
<CustomPreBuild/>
|
||||
</AdditionalRules>
|
||||
<Completion EnableCpp11="no">
|
||||
<Completion EnableCpp11="no" EnableCpp14="no">
|
||||
<ClangCmpFlagsC/>
|
||||
<ClangCmpFlags/>
|
||||
<ClangPP/>
|
||||
@ -118,6 +137,4 @@
|
||||
</Completion>
|
||||
</Configuration>
|
||||
</Settings>
|
||||
<Dependencies Name="Debug"/>
|
||||
<Dependencies Name="Release"/>
|
||||
</CodeLite_Project>
|
||||
|
@ -26,6 +26,13 @@
|
||||
<File Name="../../../moses-cmd/MainVW.cpp" ExcludeProjConfig="Debug"/>
|
||||
<File Name="../../../moses-cmd/MainVW.h" ExcludeProjConfig="Debug"/>
|
||||
</VirtualDirectory>
|
||||
<Dependencies Name="Debug">
|
||||
<Project Name="OnDiskPt"/>
|
||||
<Project Name="lm"/>
|
||||
<Project Name="search"/>
|
||||
<Project Name="util"/>
|
||||
</Dependencies>
|
||||
<Dependencies Name="Release"/>
|
||||
<Settings Type="Executable">
|
||||
<GlobalSettings>
|
||||
<Compiler Options="" C_Options="" Assembler="">
|
||||
@ -39,20 +46,20 @@
|
||||
<Configuration Name="Debug" CompilerType="GCC" DebuggerType="LLDB Debugger" Type="Executable" BuildCmpWithGlobalSettings="append" BuildLnkWithGlobalSettings="append" BuildResWithGlobalSettings="append">
|
||||
<Compiler Options="-g;-O0;-Wall" C_Options="-g;-O0;-Wall" Assembler="" Required="yes" PreCompiledHeader="" PCHInCommandLine="no" PCHFlags="" PCHFlagsPolicy="0">
|
||||
<IncludePath Value="."/>
|
||||
<IncludePath Value="/Users/hieu/workspace/github/mosesdecoder"/>
|
||||
<IncludePath Value="/Users/hieu/workspace/github/mosesdecoder/phrase-extract"/>
|
||||
<IncludePath Value="/Users/hieu/workspace/github/mosesdecoder/boost/include"/>
|
||||
<IncludePath Value="../../.."/>
|
||||
<IncludePath Value="../../../phrase-extract"/>
|
||||
<IncludePath Value="../../../boost/include"/>
|
||||
<Preprocessor Value="MAX_NUM_FACTORS=4"/>
|
||||
<Preprocessor Value="KENLM_MAX_ORDER=7"/>
|
||||
<Preprocessor Value="TRACE_ENABLE=1"/>
|
||||
</Compiler>
|
||||
<Linker Options="" Required="yes">
|
||||
<LibraryPath Value="/Users/hieu/workspace/github/mosesdecoder/boost/lib64"/>
|
||||
<LibraryPath Value="/Users/hieu/workspace/github/mosesdecoder/contrib/other-builds/lm/Debug"/>
|
||||
<LibraryPath Value="/Users/hieu/workspace/github/mosesdecoder/contrib/other-builds/moses/Debug"/>
|
||||
<LibraryPath Value="/Users/hieu/workspace/github/mosesdecoder/contrib/other-builds/OnDiskPt/Debug"/>
|
||||
<LibraryPath Value="/Users/hieu/workspace/github/mosesdecoder/contrib/other-builds/search/Debug"/>
|
||||
<LibraryPath Value="/Users/hieu/workspace/github/mosesdecoder/contrib/other-builds/util/Debug"/>
|
||||
<LibraryPath Value="../../../boost/lib64"/>
|
||||
<LibraryPath Value="../../../contrib/other-builds/lm/Debug"/>
|
||||
<LibraryPath Value="../../../contrib/other-builds/moses/Debug"/>
|
||||
<LibraryPath Value="../../../contrib/other-builds/OnDiskPt/Debug"/>
|
||||
<LibraryPath Value="../../../contrib/other-builds/search/Debug"/>
|
||||
<LibraryPath Value="../../../contrib/other-builds/util/Debug"/>
|
||||
<Library Value="util"/>
|
||||
<Library Value="moses"/>
|
||||
<Library Value="search"/>
|
||||
@ -143,11 +150,4 @@
|
||||
</Completion>
|
||||
</Configuration>
|
||||
</Settings>
|
||||
<Dependencies Name="Debug">
|
||||
<Project Name="OnDiskPt"/>
|
||||
<Project Name="lm"/>
|
||||
<Project Name="search"/>
|
||||
<Project Name="util"/>
|
||||
</Dependencies>
|
||||
<Dependencies Name="Release"/>
|
||||
</CodeLite_Project>
|
||||
|
@ -2,6 +2,10 @@
|
||||
<CodeLite_Project Name="pruneGeneration" InternalType="Console">
|
||||
<Description/>
|
||||
<Dependencies/>
|
||||
<VirtualDirectory Name="src">
|
||||
<File Name="../../../misc/pruneGeneration.cpp"/>
|
||||
<File Name="../../../misc/pruneGeneration.h"/>
|
||||
</VirtualDirectory>
|
||||
<Settings Type="Executable">
|
||||
<GlobalSettings>
|
||||
<Compiler Options="" C_Options="" Assembler="">
|
||||
@ -15,6 +19,7 @@
|
||||
<Configuration Name="Debug" CompilerType="GCC ( XCode )" DebuggerType="LLDB Debugger" Type="Executable" BuildCmpWithGlobalSettings="append" BuildLnkWithGlobalSettings="append" BuildResWithGlobalSettings="append">
|
||||
<Compiler Options="-g;-O0;-Wall" C_Options="-g;-O0;-Wall" Assembler="" Required="yes" PreCompiledHeader="" PCHInCommandLine="no" PCHFlags="" PCHFlagsPolicy="0">
|
||||
<IncludePath Value="."/>
|
||||
<IncludePath Value="../../.."/>
|
||||
</Compiler>
|
||||
<Linker Options="" Required="yes"/>
|
||||
<ResourceCompiler Options="" Required="no"/>
|
||||
@ -90,8 +95,4 @@
|
||||
</Completion>
|
||||
</Configuration>
|
||||
</Settings>
|
||||
<VirtualDirectory Name="src">
|
||||
<File Name="../../../misc/pruneGeneration.cpp"/>
|
||||
<File Name="../../../misc/pruneGeneration.h"/>
|
||||
</VirtualDirectory>
|
||||
</CodeLite_Project>
|
||||
|
@ -19,6 +19,10 @@
|
||||
<File Name="../../../phrase-extract/tables-core.cpp"/>
|
||||
<File Name="../../../phrase-extract/tables-core.h"/>
|
||||
</VirtualDirectory>
|
||||
<Dependencies Name="Debug">
|
||||
<Project Name="util"/>
|
||||
</Dependencies>
|
||||
<Dependencies Name="Release"/>
|
||||
<Settings Type="Executable">
|
||||
<GlobalSettings>
|
||||
<Compiler Options="" C_Options="" Assembler="">
|
||||
@ -32,17 +36,17 @@
|
||||
<Configuration Name="Debug" CompilerType="clang( based on LLVM 3.5svn )" DebuggerType="LLDB Debugger" Type="Executable" BuildCmpWithGlobalSettings="append" BuildLnkWithGlobalSettings="append" BuildResWithGlobalSettings="append">
|
||||
<Compiler Options="-g;-O0;-Wall" C_Options="-g;-O0;-Wall" Assembler="" Required="yes" PreCompiledHeader="" PCHInCommandLine="no" PCHFlags="" PCHFlagsPolicy="0">
|
||||
<IncludePath Value="."/>
|
||||
<IncludePath Value="/Users/hieu/workspace/github/mosesdecoder"/>
|
||||
<IncludePath Value="/Users/hieu/workspace/github/mosesdecoder/phrase-extract"/>
|
||||
<IncludePath Value="/Users/hieu/workspace/github/mosesdecoder/boost/include"/>
|
||||
<IncludePath Value="../../.."/>
|
||||
<IncludePath Value="../../../phrase-extract"/>
|
||||
<IncludePath Value="../../../boost/include"/>
|
||||
</Compiler>
|
||||
<Linker Options="" Required="yes">
|
||||
<LibraryPath Value="/Users/hieu/workspace/github/mosesdecoder/boost/lib64"/>
|
||||
<LibraryPath Value="/Users/hieu/workspace/github/mosesdecoder/contrib/other-builds/lm/Debug"/>
|
||||
<LibraryPath Value="/Users/hieu/workspace/github/mosesdecoder/contrib/other-builds/moses/Debug"/>
|
||||
<LibraryPath Value="/Users/hieu/workspace/github/mosesdecoder/contrib/other-builds/OnDiskPt/Debug"/>
|
||||
<LibraryPath Value="/Users/hieu/workspace/github/mosesdecoder/contrib/other-builds/search/Debug"/>
|
||||
<LibraryPath Value="/Users/hieu/workspace/github/mosesdecoder/contrib/other-builds/util/Debug"/>
|
||||
<LibraryPath Value="../../../boost/lib64"/>
|
||||
<LibraryPath Value="../../../contrib/other-builds/lm/Debug"/>
|
||||
<LibraryPath Value="../../../contrib/other-builds/moses/Debug"/>
|
||||
<LibraryPath Value="../../../contrib/other-builds/OnDiskPt/Debug"/>
|
||||
<LibraryPath Value="../../../contrib/other-builds/search/Debug"/>
|
||||
<LibraryPath Value="../../../contrib/other-builds/util/Debug"/>
|
||||
<Library Value="moses"/>
|
||||
<Library Value="search"/>
|
||||
<Library Value="OnDiskPt"/>
|
||||
@ -86,7 +90,7 @@
|
||||
<CustomPostBuild/>
|
||||
<CustomPreBuild/>
|
||||
</AdditionalRules>
|
||||
<Completion EnableCpp11="no">
|
||||
<Completion EnableCpp11="no" EnableCpp14="no">
|
||||
<ClangCmpFlagsC/>
|
||||
<ClangCmpFlags/>
|
||||
<ClangPP/>
|
||||
@ -125,7 +129,7 @@
|
||||
<CustomPostBuild/>
|
||||
<CustomPreBuild/>
|
||||
</AdditionalRules>
|
||||
<Completion EnableCpp11="no">
|
||||
<Completion EnableCpp11="no" EnableCpp14="no">
|
||||
<ClangCmpFlagsC/>
|
||||
<ClangCmpFlags/>
|
||||
<ClangPP/>
|
||||
@ -133,8 +137,4 @@
|
||||
</Completion>
|
||||
</Configuration>
|
||||
</Settings>
|
||||
<Dependencies Name="Debug">
|
||||
<Project Name="util"/>
|
||||
</Dependencies>
|
||||
<Dependencies Name="Release"/>
|
||||
</CodeLite_Project>
|
||||
|
@ -10,6 +10,8 @@
|
||||
<File Name="../../../search/rule.cc"/>
|
||||
<File Name="../../../search/vertex.cc"/>
|
||||
</VirtualDirectory>
|
||||
<Dependencies Name="Debug"/>
|
||||
<Dependencies Name="Release"/>
|
||||
<Settings Type="Static Library">
|
||||
<GlobalSettings>
|
||||
<Compiler Options="" C_Options="" Assembler="">
|
||||
@ -23,9 +25,9 @@
|
||||
<Configuration Name="Debug" CompilerType="GCC" DebuggerType="LLDB Debugger" Type="Static Library" BuildCmpWithGlobalSettings="append" BuildLnkWithGlobalSettings="append" BuildResWithGlobalSettings="append">
|
||||
<Compiler Options="-g" C_Options="-g" Assembler="" Required="yes" PreCompiledHeader="" PCHInCommandLine="no" PCHFlags="" PCHFlagsPolicy="0">
|
||||
<IncludePath Value="."/>
|
||||
<IncludePath Value="/Users/hieu/workspace/github/mosesdecoder"/>
|
||||
<IncludePath Value="/Users/hieu/workspace/github/mosesdecoder/phrase-extract"/>
|
||||
<IncludePath Value="/Users/hieu/workspace/github/mosesdecoder/boost/include"/>
|
||||
<IncludePath Value="../../.."/>
|
||||
<IncludePath Value="../../../phrase-extract"/>
|
||||
<IncludePath Value="../../../boost/include"/>
|
||||
<Preprocessor Value="KENLM_MAX_ORDER=7"/>
|
||||
</Compiler>
|
||||
<Linker Options="" Required="yes"/>
|
||||
@ -55,7 +57,7 @@
|
||||
<CustomPostBuild/>
|
||||
<CustomPreBuild/>
|
||||
</AdditionalRules>
|
||||
<Completion EnableCpp11="no">
|
||||
<Completion EnableCpp11="no" EnableCpp14="no">
|
||||
<ClangCmpFlagsC/>
|
||||
<ClangCmpFlags/>
|
||||
<ClangPP/>
|
||||
@ -93,7 +95,7 @@
|
||||
<CustomPostBuild/>
|
||||
<CustomPreBuild/>
|
||||
</AdditionalRules>
|
||||
<Completion EnableCpp11="no">
|
||||
<Completion EnableCpp11="no" EnableCpp14="no">
|
||||
<ClangCmpFlagsC/>
|
||||
<ClangCmpFlags/>
|
||||
<ClangPP/>
|
||||
@ -101,6 +103,4 @@
|
||||
</Completion>
|
||||
</Configuration>
|
||||
</Settings>
|
||||
<Dependencies Name="Debug"/>
|
||||
<Dependencies Name="Release"/>
|
||||
</CodeLite_Project>
|
||||
|
@ -62,6 +62,8 @@
|
||||
<File Name="../../../util/stream/sort_test.cc" ExcludeProjConfig="Debug"/>
|
||||
<File Name="../../../util/stream/stream_test.cc" ExcludeProjConfig="Debug"/>
|
||||
</VirtualDirectory>
|
||||
<Dependencies Name="Debug"/>
|
||||
<Dependencies Name="Release"/>
|
||||
<Settings Type="Static Library">
|
||||
<GlobalSettings>
|
||||
<Compiler Options="" C_Options="" Assembler="">
|
||||
@ -75,8 +77,8 @@
|
||||
<Configuration Name="Debug" CompilerType="GCC" DebuggerType="LLDB Debugger" Type="Static Library" BuildCmpWithGlobalSettings="append" BuildLnkWithGlobalSettings="append" BuildResWithGlobalSettings="append">
|
||||
<Compiler Options="-g" C_Options="-g" Assembler="" Required="yes" PreCompiledHeader="" PCHInCommandLine="no" PCHFlags="" PCHFlagsPolicy="0">
|
||||
<IncludePath Value="."/>
|
||||
<IncludePath Value="/Users/hieu/workspace/github/mosesdecoder"/>
|
||||
<IncludePath Value="/Users/hieu/workspace/github/mosesdecoder/boost/include"/>
|
||||
<IncludePath Value="../../.."/>
|
||||
<IncludePath Value="../../../boost/include"/>
|
||||
</Compiler>
|
||||
<Linker Options="" Required="yes"/>
|
||||
<ResourceCompiler Options="" Required="no"/>
|
||||
@ -105,7 +107,7 @@
|
||||
<CustomPostBuild/>
|
||||
<CustomPreBuild/>
|
||||
</AdditionalRules>
|
||||
<Completion EnableCpp11="no">
|
||||
<Completion EnableCpp11="no" EnableCpp14="no">
|
||||
<ClangCmpFlagsC/>
|
||||
<ClangCmpFlags/>
|
||||
<ClangPP/>
|
||||
@ -143,7 +145,7 @@
|
||||
<CustomPostBuild/>
|
||||
<CustomPreBuild/>
|
||||
</AdditionalRules>
|
||||
<Completion EnableCpp11="no">
|
||||
<Completion EnableCpp11="no" EnableCpp14="no">
|
||||
<ClangCmpFlagsC/>
|
||||
<ClangCmpFlags/>
|
||||
<ClangPP/>
|
||||
@ -151,6 +153,4 @@
|
||||
</Completion>
|
||||
</Configuration>
|
||||
</Settings>
|
||||
<Dependencies Name="Debug"/>
|
||||
<Dependencies Name="Release"/>
|
||||
</CodeLite_Project>
|
||||
|
@ -1,10 +1,10 @@
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <iostream>
|
||||
#include <cassert>
|
||||
#include <algorithm>
|
||||
#include <functional>
|
||||
#include "pruneGeneration.h"
|
||||
#include "moses/InputFileStream.h"
|
||||
|
||||
using namespace std;
|
||||
|
||||
@ -13,16 +13,23 @@ int main(int argc, char **argv)
|
||||
cerr << "Starting" << endl;
|
||||
int limit = atoi(argv[1]);
|
||||
|
||||
Process(limit, cin, cout);
|
||||
|
||||
cerr << "Finished" << endl;
|
||||
}
|
||||
|
||||
void Process(int limit, istream &inStrme, ostream &outStrme)
|
||||
{
|
||||
vector<Rec> records;
|
||||
string prevInWord;
|
||||
string line;
|
||||
while (getline(cin, line)) {
|
||||
while (getline(inStrme, line)) {
|
||||
vector<string> toks;
|
||||
Tokenize(toks, line);
|
||||
assert(toks.size() == 4);
|
||||
|
||||
if (prevInWord != toks[0]) {
|
||||
Output(limit, records);
|
||||
Output(outStrme, records, limit);
|
||||
records.clear();
|
||||
}
|
||||
|
||||
@ -34,13 +41,12 @@ int main(int argc, char **argv)
|
||||
}
|
||||
|
||||
// last
|
||||
Output(limit, records);
|
||||
Output(outStrme, records, limit);
|
||||
records.clear();
|
||||
|
||||
cerr << "Finished" << endl;
|
||||
}
|
||||
|
||||
void Output(int limit, vector<Rec> &records)
|
||||
void Output(ostream &outStrme, vector<Rec> &records, int limit)
|
||||
{
|
||||
std::sort(records.rbegin(), records.rend());
|
||||
|
||||
|
@ -1,6 +1,7 @@
|
||||
#pragma once
|
||||
#include <vector>
|
||||
#include <string>
|
||||
#include <iostream>
|
||||
|
||||
class Rec
|
||||
{
|
||||
@ -20,7 +21,8 @@ public:
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
|
||||
void Output(int limit, std::vector<Rec> &records);
|
||||
void Process(int limit, std::istream &inStrme, std::ostream &outStrme);
|
||||
void Output(std::ostream &outStrme, std::vector<Rec> &records, int limit);
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
inline void Tokenize(std::vector<std::string> &output
|
||||
|
Loading…
Reference in New Issue
Block a user