redpony / cdec

Decoder, aligner, and model optimizer for statistical machine translation and other structured prediction models based on (mostly) context-free formalisms
http://cdec-decoder.org/
Apache License 2.0
183 stars 77 forks source link

Fail to install pycdec #95

Open shizhediao opened 6 years ago

shizhediao commented 6 years ago

I find most of the command about installing pycdec is python setup.py install BUT, I just find the setup.py.in file and there is no setup.py file when I type python setup.py.in install I encountered with an error


`../utils/fast_sparse_vector.h: In member function 'size_t FastSparseVector<T, LOCAL_MAX>::size() const [with T = double; unsigned int LOCAL_MAX = 7u; size_t = long unsigned int]':
../utils/fast_sparse_vector.h:280:3: warning: control reaches end of non-void function [-Wreturn-type]
   }
   ^
In file included from cdec/_cdec.cpp:264:0:
../decoder/kbest.h: In member function 'bool KBest::FilterUnique::operator()(const std::vector<int>&)':
../decoder/kbest.h:34:5: warning: control reaches end of non-void function [-Wreturn-type]
     }
     ^
In file included from ../utils/fdict.h:11:0,
                 from ../utils/fast_sparse_vector.h:25,
                 from ../utils/sparse_vector.h:4,
                 from ../utils/weights.h:6,
                 from cdec/_cdec.cpp:238:
../utils/dict.h: In member function 'WordID Dict::Convert(const string&, bool)':
../utils/dict.h:60:3: warning: control reaches end of non-void function [-Wreturn-type]
   }
   ^
In file included from ../utils/dict.h:11:0,
                 from ../utils/fdict.h:11,
                 from ../utils/fast_sparse_vector.h:25,
                 from ../utils/sparse_vector.h:4,
                 from ../utils/weights.h:6,
                 from cdec/_cdec.cpp:238:
../utils/wordid.h: At global scope:
../utils/wordid.h:9:21: warning: 'null_wordid' defined but not used [-Wunused-variable]
 static const WordID null_wordid=std::numeric_limits<WordID>::max();
                     ^

error: command 'gcc' failed with exit status 1`

Could anyone help me ? thanks!

anushreeapk commented 6 years ago

Can we get a fix on this issue? I am facing the exact same error.