mosesdecoder/moses
Jeroen Vermeulen 464615a0c3 Fix some clang++ warnings.
Compiling with clang++ at the default warning/error levels produces
some interesting warnings.  Here's a pair of fixes for the simplest
instances:

moses/TranslationModel/RuleTable/PhraseDictionaryFuzzyMatch.cpp:133:7:
warning: comparison of array 'path' equal to a null pointer is always
false [-Wtautological-pointer-compare]
  if (path == NULL) {
      ^~~~    ~~~~

(The code unnecessarily checks that an automatic variable has a
 non-null address).

moses/TranslationModel/DynSAInclude/onlineRLM.h:305:20:
warning: unsequenced modification and access to 'den_val' [-Wunsequenced]
  if(((den_val = query(&ngram[len - num_fnd], num_fnd - 1)) > 0) &&
               ^

(The code tries to cram too much into an "if" condition.)
2015-04-07 22:58:17 +07:00
..
FF Make an include path explicit. 2015-04-03 17:47:48 +07:00
LM Fix some compile warnings (gcc 4.9.2). 2015-03-29 18:10:51 +07:00
PP Modernize "C" includes in moses. 2015-03-28 20:09:03 +07:00
server Renamed MosesServer::TranslationTask to MosesServer::TranslationRequest and made that a subtype of Moses::TranslationTask to avoid name confusion. 2015-03-21 15:56:20 +00:00
Syntax Fix some compile warnings (gcc 4.9.2). 2015-03-29 18:10:51 +07:00
TranslationModel Fix some clang++ warnings. 2015-04-07 22:58:17 +07:00
AlignmentInfo.cpp towards training 2015-01-08 14:53:46 +01:00
AlignmentInfo.h AlignmentInfo ctors should be private 2015-01-09 14:24:16 +01:00
AlignmentInfoCollection.cpp Mmsapt now adds word alignment info to target phrases. 2014-10-07 18:08:31 +01:00
AlignmentInfoCollection.h beautify 2015-01-14 11:07:42 +00:00
AlignmentInfoTest.cpp beautify 2013-05-29 18:16:15 +01:00
BaseManager.cpp beautify 2015-01-14 11:07:42 +00:00
BaseManager.h beautify 2015-01-14 11:07:42 +00:00
BitmapContainer.cpp beautify 2015-01-14 11:07:42 +00:00
BitmapContainer.h std::unordered_set replaces std::set for m_seenPosition. 2014-11-29 16:59:10 +01:00
ChartCell.cpp beautify 2015-01-14 11:07:42 +00:00
ChartCell.h beautify 2015-01-14 11:07:42 +00:00
ChartCellCollection.cpp beautify 2013-05-29 18:16:15 +01:00
ChartCellCollection.h delete input path creation. Already doing it in ChartParser. SCFG algorithm needs a cleanup 2014-06-16 14:37:36 +01:00
ChartCellLabel.h add input path to chart cell label 2014-06-16 00:55:36 +01:00
ChartCellLabelSet.h beautify 2015-01-14 11:07:42 +00:00
ChartHypothesis.cpp beautify 2015-01-14 11:07:42 +00:00
ChartHypothesis.h beautify 2015-01-14 11:07:42 +00:00
ChartHypothesisCollection.cpp merged master into dynamic-models and solved conflicts 2014-12-13 12:52:47 +01:00
ChartHypothesisCollection.h Implement hypergraph output for chart moses 2014-08-07 21:20:10 +01:00
ChartKBestExtractor.cpp on-the-fly unbinarization of internal tree structure (for translation models extracted from binarized treebanks) 2015-03-18 17:36:32 +00:00
ChartKBestExtractor.h score deltas in chart decoding 2015-01-07 14:25:43 +00:00
ChartManager.cpp Modernize "C" includes in moses. 2015-03-28 20:09:03 +07:00
ChartManager.h beautify 2015-01-14 11:07:42 +00:00
ChartParser.cpp RulePairUnlexicalizedSource feature function 2015-03-02 14:32:18 +00:00
ChartParser.h change signature of GetChartRuleCollection() 2015-01-07 12:59:08 +04:00
ChartParserCallback.h method rename 2014-08-08 18:11:30 +01:00
ChartRuleLookupManager.cpp skelete pt 2013-09-28 09:42:17 +01:00
ChartRuleLookupManager.h beautify 2015-01-14 11:07:42 +00:00
ChartTranslationOption.cpp beautify 2015-01-14 11:07:42 +00:00
ChartTranslationOption.h beautify 2015-01-14 11:07:42 +00:00
ChartTranslationOptionList.cpp merged master into dynamic-models and solved conflicts 2014-12-13 12:52:47 +01:00
ChartTranslationOptionList.h method rename 2014-08-08 18:11:30 +01:00
ChartTranslationOptions.cpp option to sort translation options after EvaluateAfterSourceContext 2015-01-22 12:25:02 +01:00
ChartTranslationOptions.h merged master into dynamic-models and solved conflicts 2014-12-13 12:52:47 +01:00
CMakeLists.txt Checking in examples of CMake files. 2013-09-06 13:39:46 -04:00
ConfusionNet.cpp Removed pointer to TranslationTask in InputTypes again. Not the right place to store this information. 2015-03-21 15:29:37 +00:00
ConfusionNet.h Removed pointer to TranslationTask in InputTypes again. Not the right place to store this information. 2015-03-21 15:29:37 +00:00
DecodeGraph.cpp beautify 2014-01-15 16:42:02 +01:00
DecodeGraph.h beautify 2015-01-14 11:07:42 +00:00
DecodeStep.cpp transliteration pt obery backoff argument. Probably not threadable yet 2013-12-05 13:06:35 +00:00
DecodeStep.h beautify 2014-01-15 16:42:02 +01:00
DecodeStepGeneration.cpp method rename 2014-08-08 15:59:34 +01:00
DecodeStepGeneration.h transliteration pt obery backoff argument. Probably not threadable yet 2013-12-05 13:06:35 +00:00
DecodeStepTranslation.cpp Code cleanup 2015-03-09 00:34:18 +00:00
DecodeStepTranslation.h transliteration pt obery backoff argument. Probably not threadable yet 2013-12-05 13:06:35 +00:00
ExportInterface.cpp 1. Added FeatureFunction::Setup(TranslationTask const&) const to allow FFs to set themselves up for specific input. 2015-03-21 17:09:41 +00:00
ExportInterface.h added a simple translation interface 2015-03-11 17:33:17 -04:00
Factor.cpp move moses/src/* to moses/ 2012-11-12 19:56:18 +00:00
Factor.h beautify 2013-05-29 18:16:15 +01:00
FactorCollection.cpp beautify 2015-01-14 11:07:42 +00:00
FactorCollection.h tiny changes 2014-08-07 21:42:30 +01:00
FactorTypeSet.cpp beautify 2013-05-31 00:00:21 +01:00
FactorTypeSet.h figure out which feature function to apply at which decode step. Book-keeping 2013-05-30 18:34:10 +01:00
FeatureVector.cpp score deltas in chart decoding 2015-01-07 14:25:43 +00:00
FeatureVector.h score deltas in chart decoding 2015-01-07 14:25:43 +00:00
FeatureVectorTest.cpp Re-enable unit tests. They all pass. 2013-09-14 17:15:41 +01:00
File.cpp move moses/src/* to moses/ 2012-11-12 19:56:18 +00:00
File.h delete typedefs for UINT32 and UINT64. MSVC now has uint32_t and uint64_t /Ken 2015-03-25 00:55:39 +00:00
FilePtr.h move moses/src/* to moses/ 2012-11-12 19:56:18 +00:00
FloydWarshall.cpp UTIL_THROW_IF -> UTIL_THROW_IF2 2013-11-22 20:27:46 +00:00
FloydWarshall.h move moses/src/* to moses/ 2012-11-12 19:56:18 +00:00
ForestInput.cpp beautify 2015-02-19 12:27:23 +00:00
ForestInput.h Removed pointer to TranslationTask in InputTypes again. Not the right place to store this information. 2015-03-21 15:29:37 +00:00
GenerationDictionary.cpp delete UserMessage. Too difficult to police 2015-01-07 10:01:10 +04:00
GenerationDictionary.h beautify 2014-01-15 16:42:02 +01:00
gzfilebuf.h move moses/src/* to moses/ 2012-11-12 19:56:18 +00:00
hypergraph.proto move moses/src/* to moses/ 2012-11-12 19:56:18 +00:00
HypergraphOutput.cpp beautify 2015-01-14 11:07:42 +00:00
HypergraphOutput.h beautify 2015-01-14 11:07:42 +00:00
HypoList.h move moses/src/* to moses/ 2012-11-12 19:56:18 +00:00
Hypothesis.cpp Consistent line ending behavior for alignment printing options 2015-04-03 16:49:41 -04:00
Hypothesis.h Fixes (?) numerous bugs discovered when the code was actually compiled (an error in the bjam configuration prevented this). 2015-03-18 13:46:15 +00:00
HypothesisStack.cpp move moses/src/* to moses/ 2012-11-12 19:56:18 +00:00
HypothesisStack.h beautify 2013-05-29 18:16:15 +01:00
HypothesisStackCubePruning.cpp merged master into dynamic-models and solved conflicts 2014-04-28 19:18:38 +02:00
HypothesisStackCubePruning.h move moses/src/* to moses/ 2012-11-12 19:56:18 +00:00
HypothesisStackNormal.cpp -stack 0 means no stack pruning 2014-04-09 10:33:33 +01:00
HypothesisStackNormal.h move moses/src/* to moses/ 2012-11-12 19:56:18 +00:00
Incremental.cpp beautify 2015-01-14 11:07:42 +00:00
Incremental.h beautify 2015-01-14 11:07:42 +00:00
InputFileStream.cpp move moses/src/* to moses/ 2012-11-12 19:56:18 +00:00
InputFileStream.h move moses/src/* to moses/ 2012-11-12 19:56:18 +00:00
InputPath.cpp beautify 2015-01-14 11:07:42 +00:00
InputPath.h beautify 2015-01-14 11:07:42 +00:00
InputType.cpp Removed pointer to TranslationTask in InputTypes again. Not the right place to store this information. 2015-03-21 15:29:37 +00:00
InputType.h Removed pointer to TranslationTask in InputTypes again. Not the right place to store this information. 2015-03-21 15:29:37 +00:00
IOWrapper.cpp 1. Lifetime of tasks in ThreadPool is now managed via shared pointers. 2015-03-21 16:12:52 +00:00
IOWrapper.h 1. Lifetime of tasks in ThreadPool is now managed via shared pointers. 2015-03-21 16:12:52 +00:00
Jamfile Library path for xmlrpc-c given via --with-xmlprc-c was not included in the compile requirements. 2015-03-20 22:32:42 +00:00
LatticeMBR.cpp const some args. Ready to internalize n-best creation into Managers 2014-12-10 20:04:16 +00:00
LatticeMBR.h const some args. Ready to internalize n-best creation into Managers 2014-12-10 20:04:16 +00:00
LVoc.cpp move moses/src/* to moses/ 2012-11-12 19:56:18 +00:00
LVoc.h use astyle 2.01. It's on Edinburgh server and doesn't screw up enum 2015-01-14 19:21:11 +00:00
Manager.cpp Consistent line ending behavior for alignment printing options 2015-04-03 16:49:41 -04:00
Manager.h beautify 2015-01-14 11:07:42 +00:00
mbr.cpp Modernize "C" includes in moses. 2015-03-28 20:09:03 +07:00
mbr.h move TranslationTask into moses/ 2014-09-30 12:59:31 +01:00
MockHypothesis.cpp Removed pointer to TranslationTask in InputTypes again. Not the right place to store this information. 2015-03-21 15:29:37 +00:00
MockHypothesis.h merge master into dynamic-models 2014-01-17 16:11:47 +01:00
MosesTest.cpp move moses/src/* to moses/ 2012-11-12 19:56:18 +00:00
NonTerminal.cpp beautify 2013-08-07 14:18:12 +01:00
NonTerminal.h Add NonTerminalSet variable to InputPath 2013-08-02 15:54:49 +01:00
ObjectPool.h move moses/src/* to moses/ 2012-11-12 19:56:18 +00:00
OutputCollector.h added a simple translation interface 2015-03-11 17:33:17 -04:00
Parameter.cpp Quick hack to make moses not stumble over double-dash parameter specifications. 2015-03-11 23:32:06 +00:00
Parameter.h Organized command line options thematically. 2015-03-05 00:34:02 +00:00
PartialTranslOptColl.cpp beautify 2014-01-15 16:42:02 +01:00
PartialTranslOptColl.h push InpuutPath down into phrase dictionary for legacy methods 2013-08-06 17:09:53 +01:00
PCNTools.cpp UTIL_THROW_IF -> UTIL_THROW_IF2 2013-11-22 20:27:46 +00:00
PCNTools.h beautify 2015-01-14 11:07:42 +00:00
PDTAimp.cpp Fix some compile warnings (gcc 4.9.2). 2015-03-29 18:10:51 +07:00
PDTAimp.h move methods for PDAimp into .cpp file 2014-08-04 14:41:12 +01:00
Phrase.cpp merged master into dynamic-models 2014-06-08 09:39:37 +02:00
Phrase.h merged master into dynamic-models and solved conflicts 2014-12-13 12:52:47 +01:00
PrefixTree.h Bug fix in a sanity check in PrefixTree.h 2014-11-21 23:58:17 +00:00
PrefixTreeMap.cpp delete typedefs for UINT32 and UINT64. MSVC now has uint32_t and uint64_t /Ken 2015-03-25 00:55:39 +00:00
PrefixTreeMap.h minor leak showing for lex reordering. Just refactor 2014-04-23 15:12:27 +01:00
ReorderingConstraint.cpp replace CHECK with UTIL_THROW_IF in Moses 2013-11-19 17:23:19 +00:00
ReorderingConstraint.h faster compilation by taking some #includes from Word.h and Phrase.h 2013-10-04 15:40:23 +01:00
rule.proto move moses/src/* to moses/ 2012-11-12 19:56:18 +00:00
RuleCube.cpp beautify 2014-01-15 16:42:02 +01:00
RuleCube.h beautify 2014-01-15 16:42:02 +01:00
RuleCubeItem.cpp method rename 2014-08-08 16:41:16 +01:00
RuleCubeItem.h compare translation option dimension using pointers to translation option, rather than comparing the phrase. Comparinf the phrase is incorrect - need to compare LHS and possibly alignments too. Unnecessary 2013-12-13 17:23:39 +00:00
RuleCubeQueue.cpp move moses/src/* to moses/ 2012-11-12 19:56:18 +00:00
RuleCubeQueue.h beautify 2013-05-29 18:16:15 +01:00
ScoreComponentCollection.cpp tuneable-components config parameter for feature functions 2015-02-16 18:39:25 +00:00
ScoreComponentCollection.h beautify 2015-01-14 11:07:42 +00:00
ScoreComponentCollectionTest.cpp beautify 2015-01-14 11:07:42 +00:00
Search.cpp delete UserMessage. Too difficult to police 2015-01-07 10:01:10 +04:00
Search.h rename ProcessSentence() to Decode() 2014-12-26 13:11:52 +05:30
SearchCubePruning.cpp beautify 2015-02-19 12:27:23 +00:00
SearchCubePruning.h rename ProcessSentence() to Decode() 2014-12-26 13:11:52 +05:30
SearchNormal.cpp beautify 2015-02-19 12:27:23 +00:00
SearchNormal.h rename ProcessSentence() to Decode() 2014-12-26 13:11:52 +05:30
SearchNormalBatch.cpp rename ProcessSentence() to Decode() 2014-12-26 13:11:52 +05:30
SearchNormalBatch.h rename ProcessSentence() to Decode() 2014-12-26 13:11:52 +05:30
Sentence.cpp Removed pointer to TranslationTask in InputTypes again. Not the right place to store this information. 2015-03-21 15:29:37 +00:00
Sentence.h Removed pointer to TranslationTask in InputTypes again. Not the right place to store this information. 2015-03-21 15:29:37 +00:00
SentenceStats.cpp speed up compiling by removing headers from StaticData.h 2013-10-03 11:05:53 +01:00
SentenceStats.h Modernize "C" includes in moses. 2015-03-28 20:09:03 +07:00
SquareMatrix.cpp move moses/src/* to moses/ 2012-11-12 19:56:18 +00:00
SquareMatrix.h move moses/src/* to moses/ 2012-11-12 19:56:18 +00:00
StackVec.h extend FF framework by add StackVec* argument to 2nd Evaluate(). NULL if phrase-based 2014-05-08 17:51:45 +01:00
StaticData.cpp Merge branch 'master' into sampled-lexicalized-reordering 2015-02-13 02:22:37 +00:00
StaticData.h Merge branch 'master' of https://github.com/moses-smt/mosesdecoder 2015-03-11 17:43:48 -04:00
SyntacticLanguageModel.cpp beautify 2013-09-27 09:35:24 +01:00
SyntacticLanguageModel.h beautify 2015-01-14 11:07:42 +00:00
SyntacticLanguageModelFiles.h replace CHECK with UTIL_THROW_IF in Moses 2013-11-19 18:52:15 +00:00
SyntacticLanguageModelState.h beautify 2013-05-29 18:16:15 +01:00
TabbedSentence.cpp beautify 2015-01-14 11:07:42 +00:00
TabbedSentence.h Removed pointer to TranslationTask in InputTypes again. Not the right place to store this information. 2015-03-21 15:29:37 +00:00
TargetPhrase.cpp Modernize "C" includes in moses. 2015-03-28 20:09:03 +07:00
TargetPhrase.h Moved caching of lexical reordering scores from class TranslationOption to class TargetPhrase. 2015-03-09 00:30:01 +00:00
TargetPhraseCollection.cpp replace nth_element() with macro that execute sort() instead for gcc 4.8.1 & 4.8.2 2013-11-15 10:55:38 +00:00
TargetPhraseCollection.h beautify 2015-01-14 11:07:42 +00:00
Terminal.h faster compilation by taking some #includes from Word.h and Phrase.h 2013-10-04 15:40:23 +01:00
ThreadPool.cpp Fix some compile warnings (gcc 4.9.2). 2015-03-29 18:10:51 +07:00
ThreadPool.h 1. Lifetime of tasks in ThreadPool is now managed via shared pointers. 2015-03-21 16:12:52 +00:00
Timer.cpp merged master into dynamic-models and solved conflicts 2014-12-13 12:52:47 +01:00
Timer.h make good use of the new precise timer... 2014-01-03 18:45:31 +00:00
TrainingTask.h beautify 2015-01-14 11:07:42 +00:00
TranslationAnalysis.cpp move TranslationAnalysis for both moses-cmd and moses-char-cmd into moses/ 2014-09-29 17:16:11 +01:00
TranslationAnalysis.h beautify 2015-01-14 11:07:42 +00:00
TranslationOption.cpp Moved caching of lexical reordering scores from class TranslationOption to class TargetPhrase. 2015-03-09 00:30:01 +00:00
TranslationOption.h Moved caching of lexical reordering scores from class TranslationOption to class TargetPhrase. 2015-03-09 00:30:01 +00:00
TranslationOptionCollection.cpp Merge branch 'master' of https://github.com/moses-smt/mosesdecoder 2015-03-09 01:27:02 +00:00
TranslationOptionCollection.h beautify 2015-02-19 12:27:23 +00:00
TranslationOptionCollectionConfusionNet.cpp beautify 2015-02-19 12:27:23 +00:00
TranslationOptionCollectionConfusionNet.h beautify 2015-02-19 12:27:23 +00:00
TranslationOptionCollectionLattice.cpp beautify 2015-02-19 12:27:23 +00:00
TranslationOptionCollectionLattice.h beautify 2015-02-19 12:27:23 +00:00
TranslationOptionCollectionText.cpp beautify 2015-02-19 12:27:23 +00:00
TranslationOptionCollectionText.h Changed return type of CreateTranslationOptionsForRange(...) from void to bool. 2015-02-05 22:45:33 +00:00
TranslationOptionList.cpp beautify 2015-02-19 12:27:23 +00:00
TranslationOptionList.h some refactoring of VW, towards customizable loss calculation in training 2015-03-04 14:26:26 +01:00
TranslationTask.cpp 1. Lifetime of tasks in ThreadPool is now managed via shared pointers. 2015-03-21 16:12:52 +00:00
TranslationTask.h 1. Added FeatureFunction::Setup(TranslationTask const&) const to allow FFs to set themselves up for specific input. 2015-03-21 17:09:41 +00:00
TreeInput.cpp Partial merge of t2s branch (implements t2s and f2s algorithms) 2015-02-02 17:07:54 +00:00
TreeInput.h Removed pointer to TranslationTask in InputTypes again. Not the right place to store this information. 2015-03-21 15:29:37 +00:00
TrellisPath.cpp beautify 2014-01-15 16:42:02 +01:00
TrellisPath.h Fix compilation error due to ambiguous function call (clang) 2015-01-13 15:05:11 +00:00
TrellisPathCollection.cpp move moses/src/* to moses/ 2012-11-12 19:56:18 +00:00
TrellisPathCollection.h move moses/src/* to moses/ 2012-11-12 19:56:18 +00:00
TrellisPathList.h move moses/src/* to moses/ 2012-11-12 19:56:18 +00:00
TypeDef.h delete typedefs for UINT32 and UINT64. MSVC now has uint32_t and uint64_t /Ken 2015-03-25 00:55:39 +00:00
UniqueObject.h move moses/src/* to moses/ 2012-11-12 19:56:18 +00:00
Util.cpp Modernize "C" includes in moses. 2015-03-28 20:09:03 +07:00
Util.h Some #defines were redefines when using IRSTLM. Now #undef-ing them prior to redefining them to avoid compiler warnings. 2015-02-09 23:04:17 +00:00
Word.cpp beautify 2015-01-14 11:07:42 +00:00
Word.h beautify 2014-05-19 15:34:27 +02:00
WordLattice.cpp Removed pointer to TranslationTask in InputTypes again. Not the right place to store this information. 2015-03-21 15:29:37 +00:00
WordLattice.h Removed pointer to TranslationTask in InputTypes again. Not the right place to store this information. 2015-03-21 15:29:37 +00:00
WordsBitmap.cpp beautify 2014-05-19 15:34:27 +02:00
WordsBitmap.h beautify 2015-02-19 12:27:23 +00:00
WordsRange.cpp move moses/src/* to moses/ 2012-11-12 19:56:18 +00:00
WordsRange.h adding some VW feature functions 2015-01-08 10:53:36 +01:00
XmlOption.cpp Using boost for prefix/suffix checks /Jeroen Vermeulen 2015-02-05 16:23:47 +00:00
XmlOption.h get rid of some warnings 2013-09-22 18:24:32 +02:00