hey andrew
that's an annoying problem. I'm thinking of transitioning the ini file
to xml, then these issues will disappear. However, other things need to
be done before that can happen.
I assume you're working on the iphone implemtation. if u're on a unix
desktop, you can creates softlink. On windows, you can use 8.3 alternate
notation.
If you really need to use spaces, you might want to delimit lines in the
ini file with tabs instead of spaces. then change the call to Tokenize to:
vector<string> spec = Tokenize<string>(fileStr[f], "\t");
On 11/02/2010 21:12, Andrew Haddad wrote:
StaticData checks to make sure the number of entries under the
parameter [distortion-file] by looking for spaces.
vector<string> spec = Tokenize<string>(fileStr[f], " ");
++f; //mark file as consumed
if(4 != spec.size()){
//wrong file specification string...
std::cerr << "Wrong Lexical Reordering Model Specification for model "
<< i << "!\n";
return false;
}
My file is located in a directory who's path has some spaces. I cant
just change it because the location of the directory is a sandbox, of
which I have no control of the location.
Any suggestions on how to format the ini file to not get any spaces
but get to the correct directory?
Thanks.
Andrew
_______________________________________________
Moses-support mailing list
[email protected]
http://mailman.mit.edu/mailman/listinfo/moses-support
_______________________________________________
Moses-support mailing list
[email protected]
http://mailman.mit.edu/mailman/listinfo/moses-support