diff options
author | Patrick Simianer <p@simianer.de> | 2014-02-28 14:09:55 +0100 |
---|---|---|
committer | Patrick Simianer <p@simianer.de> | 2014-02-28 14:09:55 +0100 |
commit | 739a8cd9a92ee10411e352e1677235a8c39ba8b3 (patch) | |
tree | 6ea4e6994d0a8c9fb9750f25f2694f5388a4dfe8 /python/cdec/sa/bilex.pxi | |
parent | ab71c44e61d00c788e84b44156d0be16191e267d (diff) | |
parent | 5675965782e2c9201a7a2fe54b542f5b06d660ef (diff) |
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'python/cdec/sa/bilex.pxi')
-rw-r--r-- | python/cdec/sa/bilex.pxi | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/python/cdec/sa/bilex.pxi b/python/cdec/sa/bilex.pxi index 44bc0ce6..73ba99c1 100644 --- a/python/cdec/sa/bilex.pxi +++ b/python/cdec/sa/bilex.pxi @@ -249,6 +249,14 @@ cdef class BiLex: fclose(f) + def contains_e_word(self, eword): + return (eword in self.eword2id) + + + def contains_f_word(self, fword): + return (fword in self.fword2id) + + def get_e_id(self, eword): if eword not in self.eword2id: e_id = len(self.id2eword) |