Commit Graph

4392 Commits

Author SHA1 Message Date
Ulrich Germann
6ef257a9e9 Bug fix in TranslationOptionList::SelectNBest(N). 2015-02-09 23:06:11 +00:00
Ulrich Germann
8ed69fb56a 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
Ulrich Germann
be5799dca3 Merge branch 'master' of https://github.com/moses-smt/mosesdecoder
Conflicts:
	moses/TranslationOptionCollection.cpp
	moses/TranslationOptionCollectionLattice.cpp
	moses/TranslationOptionCollectionLattice.h
	moses/TranslationOptionList.h
2015-02-06 01:30:00 +00:00
Ulrich Germann
80a9f84422 Adapted code to deal with new return type of TranslationOptionCollection::GetTranslationOptionList(...). 2015-02-05 23:35:53 +00:00
Ulrich Germann
68f418a12a Added struct Better for ranking TranslationOptions. 2015-02-05 23:34:34 +00:00
Ulrich Germann
693ddb0cf5 Changed return type of CreateTranslationOptionsForRange(...); code reformatting. 2015-02-05 23:31:39 +00:00
Ulrich Germann
f11e2c9006 Changed return type of CreateTranslationOptionsForRange(...). 2015-02-05 23:30:56 +00:00
Ulrich Germann
db013975b0 Code reorganization and code cleanup. 2015-02-05 23:06:25 +00:00
Ulrich Germann
006297831c Changed return types of member functions CreateTranslationOptionsForRange(...) and GetTranslationOptionList(...). 2015-02-05 23:04:53 +00:00
Ulrich Germann
c464420586 Changed return type of CreateTranslationOptionsForRange(...) from void to bool. 2015-02-05 22:49:28 +00:00
Ulrich Germann
dfd3a53e9e Changed return type of CreateTranslationOptionsForRange(...) from void to bool. 2015-02-05 22:48:46 +00:00
Ulrich Germann
35673f4274 Changed return type of CreateTranslationOptionsForRange(...) from void to bool. Reformatting. 2015-02-05 22:47:25 +00:00
Ulrich Germann
19e7cf216c Changed return type of CreateTranslationOptionsForRange(...) from void to bool. 2015-02-05 22:45:33 +00:00
Ulrich Germann
cc5271bf42 Reformatting. Added member functions SelectNBest and PruneByThreshold. 2015-02-05 22:44:11 +00:00
Ulrich Germann
2073963e08 Reformatting. 2015-02-05 22:29:47 +00:00
Ulrich Germann
c1462fa87d Reformatted for readability. 2015-02-05 22:20:22 +00:00
James Zhang
8b61f396a7 Simple structure change to make moses main() function available in libmoses.a 2015-02-05 14:43:45 -05:00
Hieu Hoang
70e8eb54ce Using boost for prefix/suffix checks /Jeroen Vermeulen 2015-02-05 16:23:47 +00:00
Hieu Hoang
53afe08da7 Merge branch 'master' of github.com:moses-smt/mosesdecoder 2015-02-04 11:33:29 +00:00
Hieu Hoang
3e14401a2b KenLM wrapper fix 2015-02-04 11:30:34 +00:00
Ales Tamchyna
fd61d2f810 vw bugfix 2015-02-04 11:33:10 +01:00
Ales Tamchyna
e932e96db7 avoid duplicate generation of source-side features when training VW 2015-02-04 11:07:07 +01:00
Kenneth Heafield
081fb5e181 Fix argument parser: ignore lead 2015-02-02 17:34:57 -05:00
Phil Williams
ac8f01bc3d Partial merge of t2s branch (implements t2s and f2s algorithms)
Implements search algorithms 7, 8, and 9:

-search-algorithm 7
  tree-to-string (STSG-based, currently a special-case of forest-to-string)

-search-algorithm 8
  tree-to-string (SCFG-based)

-search-algorithm 9
  forest-to-string (STSG-based)
2015-02-02 17:07:54 +00:00
Phil Williams
c8ad84fa55 New input type, ForestInput, for weighted forests.
* Uses Egret format (https://sites.google.com/site/zhangh1982/egret)
 * Used by forest-to-string search algorithm (-search-algorithm 9)
2015-02-02 16:34:17 +00:00
Phil Williams
984936f05f Placeholders for new syntax-based search algorithms 2015-02-02 15:39:00 +00:00
Phil Williams
e177131a22 Remove -s2t option (use -search-algorithm=6 instead) 2015-02-02 15:01:59 +00:00
Kenneth Heafield
e542986ed5 Merge branch 'master' of github.com:moses-smt/mosesdecoder 2015-02-02 09:26:08 -05:00
Kenneth Heafield
ee881734fe Rewrite KenLM argument parser to consume one = 2015-02-02 09:25:02 -05:00
Phil Williams
2975e7a0d3 Minor refactoring in moses/Syntax 2015-01-30 11:56:08 +00:00
Matthias Huck
a2efb9afc7 PhraseOrientationFeature: more sparse scores 2015-01-29 20:23:41 +00:00
Ales Tamchyna
c33e9e81da vw verbose 2015-01-29 17:40:22 +01:00
Ales Tamchyna
2b0aa56677 VW verbose outputs 2015-01-29 17:33:35 +01:00
Ales Tamchyna
79f7e7bd16 Merge branch 'master' of github.com:moses-smt/mosesdecoder 2015-01-29 16:52:27 +01:00
Ales Tamchyna
bef4795ad9 optionally leave one out in VW training 2015-01-29 16:52:21 +01:00
Matthias Huck
7a7d12b038 PhraseOrientationFeature: can produce some sparse scores 2015-01-28 20:50:24 +00:00
Matthias Huck
91dfd36c8b use FEATUREVERBOSE 2015-01-28 20:49:04 +00:00
Matthias Huck
4cc5c677b3 Merge branch 'master' of https://github.com/moses-smt/mosesdecoder 2015-01-27 18:53:13 +00:00
Hieu Hoang
7691657c35 Merge branch 'RC-3.1' 2015-01-27 18:24:36 +00:00
Hieu Hoang
5244a7b607 shut up 2015-01-27 18:24:15 +00:00
Matthias Huck
9f562e0fd4 SoftSourceSyntacticConstraintsFeature: better config parameter names 2015-01-27 18:15:51 +00:00
Matthias Huck
0a0ea437bb use pragma once; avoid using cerr directly 2015-01-26 22:12:44 +00:00
Matthias Huck
eb9d8134a7 PhraseOrientationFeature: Heuristic score for boundary non-terminals is basically a lookahead. Compute a lookahead for everything.
(+ Refined feature state comparison.)
2015-01-26 21:11:37 +00:00
Matthias Huck
e51714ff7a a plain dense unaligned word count feature with two scores (source and target unaligned words) 2015-01-26 21:06:12 +00:00
Matthias Huck
c66d6a9b86 using pragma once and VERBOSE in SourceWordDeletionFeature/TargetWordInsertionFeature 2015-01-26 20:45:08 +00:00
Nicola Bertoldi
fa00c99aa3 fixings to the IRSTLM interface for textual input; code cleanup 2015-01-26 18:24:12 +01:00
Nicola Bertoldi
18eaf62ce3 fixings to the IRSTLM interface for textual input 2015-01-26 15:51:08 +01:00
Matthias Huck
9987beb453 SoftSourceSyntacticConstraintsFeature: Now for both non-terminals (as before) _and_ terminals.
Also added score components based on relative frequency.
(TODO: logprobs right now; are plain probabilities better?)
2015-01-23 18:41:18 +00:00
Hieu Hoang
45ff417244 beautify 2015-01-22 22:41:56 +00:00
Marcin Junczys-Dowmunt
4140756fdf Add missing chck for empty range while flushing 2015-01-22 22:18:19 +01:00