ivan-zapreev / Distributed-Translation-Infrastructure

The distributed statistical machine translation infrastructure consisting of load balancing, text pre/post-processing and translation services. Written in C++ 11 and utilises multicore CPUs by employing multi-threading, allows for secure SSL/TLS communications.
GNU General Public License v2.0
12 stars 3 forks source link

Problem loading config file #4

Closed hamidreza-ghader closed 8 years ago

hamidreza-ghader commented 8 years ago

The server cannot parse the config file properly when lambda values are in high precision. Here I have provided some lambda values to be used in a config file. The order of the lambda values is the same order as in server.cfg.feature_id2name file.

-0.000162457848383319 0.247927209374343 0.0355422983635898 0.0148346801128702 0.00169563839872649 -0.00867862339385234 0.015074386107116 0.0133560971821781 0.0189869657925356 0.0329663066094344 0.01456172599588 0.00776403068125194 0.037211847543291 0.0571065223939 879 0.0506461063759449 0.0024456905316676

ivan-zapreev commented 8 years ago

The INI library had a limited size buffer of 128 bytes to read config file lines, this buffer is now increased to 1024 characters, which should be enough.