diff options
author | Chris Dyer <redpony@gmail.com> | 2009-12-07 01:50:49 -0500 |
---|---|---|
committer | Chris Dyer <redpony@gmail.com> | 2009-12-07 01:50:49 -0500 |
commit | ec7edcc7e398bdb040d810094b8416ad9f279d98 (patch) | |
tree | bdaea01e4317d04946de432d8b3a187881e63e96 /src/sentence_metadata.h | |
parent | d6c82eaee9489a4d187a266a7d76a3e09cde119f (diff) |
minor changes to the way the phonotactic prob is calculated
Diffstat (limited to 'src/sentence_metadata.h')
-rw-r--r-- | src/sentence_metadata.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/sentence_metadata.h b/src/sentence_metadata.h index 0178f1f5..ef9eb388 100644 --- a/src/sentence_metadata.h +++ b/src/sentence_metadata.h @@ -27,11 +27,16 @@ struct SentenceMetadata { int GetSourceLength() const { return src_len_; } int GetTargetLength() const { return trg_len_; } int GetSentenceID() const { return sent_id_; } + // this will be empty if the translator accepts non FS input! + const Lattice& GetSourceLattice() const { return src_lattice_; } private: const int sent_id_; + // the following should be set, if possible, by the Translator int src_len_; - + public: + Lattice src_lattice_; // this will only be set if inputs are finite state! + private: // you need to be very careful when depending on these values // they will only be set during training / alignment contexts const bool has_reference_; |