Michael Denkowski
3aedc0bf68
Standalone phrase distance feature
...
(Uses input coordinates populated by XML input and target phrase coordinates
populated by phrase dictionary implementation)
2016-08-12 12:05:12 +02:00
Michael Denkowski
ae1e51d81a
Support storing coordinates of target phrase
...
- Keep track of named spaces in StaticData
- Adding coords to phrases implemented for Mmsapt
2016-08-12 12:05:12 +02:00
Matthias Huck
f6b0d988d9
eliminate compiler warnings
2016-01-06 17:35:19 +00:00
Ulrich Germann
bb6e0157aa
Code cleanup and refactoring.
2015-12-13 22:31:43 +00:00
Ulrich Germann
29694af6e4
Code cleanup and refactoring.
2015-12-11 01:09:22 +00:00
Ulrich Germann
240b88c683
Passing around AllOptions or references thereto everywhere,
...
strong them locally where appropriate, so that compontents can
become independent of StaticData once instantiated.
2015-12-09 23:05:00 +00:00
Ulrich Germann
c4e45fb128
Code cleanup.
2015-12-07 16:07:11 +00:00
Phil Williams
7375d81e16
Fix a few compiler warnings (clang)
2015-11-27 12:20:38 +00:00
Hieu Hoang
4078c30a42
estimatedScore -> estimatedScores
2015-11-04 15:10:45 +00:00
Hieu Hoang
6be932c1f7
consistent naming of future scores, estimated scores
2015-11-03 09:41:59 +00:00
Hieu Hoang
ee5b190d43
consistent naming of future scores, estimated scores
2015-11-03 05:55:26 +00:00
MosesAdmin
4168429aac
daily automatic beautifier
2015-10-31 17:14:47 +00:00
Ulrich Germann
6a2e6feeed
Context weights now live in the ContextScope, not any more on TranslationTask.
...
TargetPhrase now has weak ptr to ContextScope, not to TranslationTask any more,
because TargetPhrases can outlive the scope of a Translation Task.
2015-10-28 10:26:41 +00:00
Ulrich Germann
8ace1398eb
Added GetTtask() and HasTtaskSPtr() to Phrase API; non-TargetPhrases never have a ttask associated with them, but we need to be able to check.
2015-10-23 21:49:09 +01:00
Ulrich Germann
ac862945bb
Bug fix: endl => std::endl.
2015-08-08 12:57:05 +01:00
MosesAdmin
21aa5af640
daily automatic beautifier
2015-08-08 00:00:45 +01:00
Ulrich Germann
d67723fd29
Merge branch 'master' of http://github.com/moses-smt/mosesdecoder into ranked-sampling
...
Conflicts:
moses/TargetPhrase.cpp
moses/TargetPhrase.h
2015-07-28 14:29:49 +01:00
Ulrich Germann
56da712283
Bug fix: TargetPhrase::GetTtask() must return shared pointer, not reference to shared pointer.
2015-07-23 00:06:54 +01:00
Ulrich Germann
0abef8c581
Moved m_ttask and m_ttash_flag in initialization orderto avoid compiler warnings.
2015-07-13 17:50:14 +01:00
Ulrich Germann
da117e7d3e
Bug fix related to m_ttask_flag in TargetPhrase. Also changed m_ttask to weak pointer in TargetPhrase.
2015-07-13 14:25:17 +01:00
MosesAdmin
0fe0f78e92
daily automatic beautifier
2015-07-04 00:00:44 +01:00
Ulrich Germann
106668d754
Changed m_ttask from ttasksptr to ttaskwptr in TargetPhrase ...
...
.. to avoid blocking destruction of TranslationTask at the end of its lifetime.
2015-07-01 14:48:25 +01:00
Ulrich Germann
851a801c64
Bug fix in copy constructor of TargetPhrase: m_ttask_flag wasn't copied but always set to true.
2015-07-01 14:01:57 +01:00
Nicola Bertoldi
6aa6131b84
introduced flag for the existence of TtaskSptr in TargetPhrase
2015-06-29 09:30:26 +02:00
XapaJIaMnu
ea23c921b3
Make getScore be able to access ttasksptr. Only works with suffix array for now, other people can implement it in their pts
2015-06-25 17:52:55 +01:00
XapaJIaMnu
943d814f79
Duplicate constructors to include ttasksptr.Works
2015-06-25 16:36:18 +01:00
XapaJIaMnu
a3ecd9f2a7
Revert "Break everything by trying to add ttasksptr to TargetPhrase" and try an easier approach
...
This reverts commit afdc1b480e
.
2015-06-25 15:47:39 +01:00
XapaJIaMnu
afdc1b480e
Break everything by trying to add ttasksptr to TargetPhrase
2015-06-25 15:47:17 +01:00
Hieu Hoang
cc8c6b7b10
beautify
2015-05-02 11:45:24 +01:00
Jeroen Vermeulen
eca5824100
Remove trailing whitespace in C++ files.
2015-04-30 12:05:11 +07:00
Jeroen Vermeulen
a9c8f44896
Modernize "C" includes in moses.
...
This is one of those little chores in managing a long-lived C++
project: standard C headers like stdio.h and math.h now have their own
place in the C++ standard as resp. cstdio, cmath, and so on. In this
branch the #include names are updated for the moses/ subdirectory; more
branches to follow.
C++11 adds cstdint, but to support compilation with the previous
standard, that change is left for later.
2015-03-28 20:09:03 +07:00
Ulrich Germann
c1d2313a66
Moved caching of lexical reordering scores from class TranslationOption to class TargetPhrase.
...
This was done so that phrase tables can add this information (if available) as extra annotation
to TargetPhrases, in preparation of providing lexical reordering models with sampling phrase tables.
2015-03-09 00:30:01 +00:00
Ales Tamchyna
bef4795ad9
optionally leave one out in VW training
2015-01-29 16:52:21 +01:00
Hieu Hoang
05ead45e71
beautify
2015-01-14 11:07:42 +00:00
Ales Tamchyna
104d43b23f
towards training
2015-01-08 14:53:46 +01:00
Marcin Junczys-Dowmunt
c8b0476cee
Added function to update future score and full score
2015-01-06 14:54:40 +01:00
Nicola Bertoldi
e4eb201c52
merged master into dynamic-models and solved conflicts
2014-12-13 12:52:47 +01:00
Ulrich Germann
576931b088
Mmsapt now adds word alignment info to target phrases.
2014-10-07 18:08:31 +01:00
Hieu Hoang
efa5befb16
method rename
2014-08-08 15:59:34 +01:00
Hieu Hoang
319bb3ccfa
method rename
2014-08-08 15:42:23 +01:00
Hieu Hoang
e863592f40
TargetPhrase to have pointer to the phrase table that creates it
2014-08-04 19:28:04 +01:00
Hieu Hoang
abe68be588
initialise m_container
2014-08-04 15:59:32 +01:00
Hieu Hoang
3f3912772d
initialise m_container
2014-08-04 15:46:40 +01:00
Hieu Hoang
5f90ccdb13
initialise m_container
2014-08-04 15:20:22 +01:00
Hieu Hoang
f844bd12d9
clean up TargetPhrase
2014-08-04 15:14:40 +01:00
Hieu Hoang
688bf4c061
each target phrase knows what decode graph created it
2014-08-02 17:15:01 +01:00
Hieu Hoang
587b5fd716
rename Evaluate() to EvaluateWithSourceContext()
2014-07-09 23:06:54 +01:00
Hieu Hoang
c9bd98fb0f
rename Evaluate() to EvaluateInIsolation()
2014-07-09 22:35:59 +01:00
Hieu Hoang
c460330430
debug output for PhraseProperty
2014-06-19 19:23:33 +01:00
Hieu Hoang
5c57702664
merge
2014-06-13 17:08:22 +01:00