hi vladislav

yes, it's fairly easy to create a new phrase-table type. There's already 9 types!

if you're doing it for phrase-based models, you would make a copy of the class
   PhraseDictionaryMemory
and change it to whatever you need.

you can run a function for each sentence by overriding
    void InitializeForInput(InputType const&)
    void CleanUp()

add your own entry to
   TypeDef.h enum PhraseTableImplementation
Call your class from
  PhraseDictionary.cpp PhraseDictionaryFeature::LoadPhraseTable

any problems, let me know

On 07/10/2012 23:11, Vladislav Nenchev wrote:
Hallo,

I am Vladislav Nenchev, a Ph.D. student at the Sofia University.
I am part of a research team in the university and we develop a statistical machine translation system. For further information check http://www.cultura-strep.eu/


We use Moses as a baseline system and I have the following question about the system: Is it possible/easy to replace the phrase table with querying to an external application?

We have an application that, given a short text (several words), returns a list of possible translations with the corresponding probabilities/weights. This list can be considered as a very small phrase table. Is it possible/easy to use this application instead of a standard phrase table? I guess that this might be similar to using an "on demand" phrase table. The difference is that we do not have a ready full phrase table beforehand, but every time we have to make an "online" query to an external application instead.


I hope to hear from you soon!
Thank you!


Best wishes!
Vladislav

--
Carpe diem

Luc!fer


_______________________________________________
Moses-support mailing list
Moses-support@mit.edu
http://mailman.mit.edu/mailman/listinfo/moses-support

_______________________________________________
Moses-support mailing list
Moses-support@mit.edu
http://mailman.mit.edu/mailman/listinfo/moses-support

Reply via email to