4 ms·
> The entire OpenNMT system (with pre-processing, the authors note) has around 4,000 lines of code. The Moses SMT framework comes in at over 100,000 lines of co
by unhammer 8y ago
> The entire OpenNMT system (with pre-processing, the authors note) has around 4,000 lines of code. The Moses SMT framework comes in at over 100,000 lines of code, according to the paper’s authors.
Although it probably is more compact/understandable, that's not quite a fair comparison since actively developed systems tend to accrue a lot of cruft for dealing with edge-cases and experiments and rewrites etc. Running `cloc .` on the current master of https://github.com/moses-smt/mosesdecoder https://github.com/moses-smt/mosesdecoder gives 450963 total lines of code (153741 in the top language, C++), while the commit for the initial sourceforge(!) checkin 12 years ago, 32edb3d66, had 12200 total lines of code (2942 in C++, 5702 in sh). If OpenNMT has success, it too will grow in size :-/
- srush 8y agoThis is probably true in general, but in the last year with the switch from Torch => PyTorch the core code has actually dropped in size. There is still progress being made in improving the frameworks for specifying deep learning models.