Closed SalathielGenese closed 5 years ago
Thank you for reporting the issue. I will investigate it soon
We actually use ingredient-phrase-tagger
which depends on crfsuite
and here we go... For a containerized app under alpine (most of the time).
The way round we actually found was to write a setup script :
if test ! -d "${PROJECT_ROOT}/node-crfsuite" ; then
# Download sources for `crfsuite`
git clone "https://github.com/vunb/node-crfsuite.git" "${PROJECT_ROOT}/node-crfsuite"
git clone "https://github.com/chokkan/crfsuite.git" "${PROJECT_ROOT}/node-crfsuite/crfsuite"
git clone "https://github.com/chokkan/liblbfgs.git" "${PROJECT_ROOT}/node-crfsuite/liblbfgs"
# Install dependencies and build `crfsuite`
cd "${PROJECT_ROOT}/node-crfsuite"
npm install
npm run build
fi
# Install project dependencies
cd "${PROJECT_ROOT}"
# npm uninstall node-crfsuite ingredient-phrase-tagger
npm install ./node-crfsuite
npm install ingredient-phrase-tagger
npm install
It would be awesome if we didn't have to do this manually.
If you want build from source, just clone with option --recursive
. The error above cause by the dependencies chokkan/crfsuite
, chokkan/liblbfgs
not dowloaded.
FYI: I have just updated the library uses node N-API
to use the binary in multiple version of Node. So now, from crfsuite@0.9.6
your project only need run npm install crfsuite
.
Please re-try and let me know the result?
Awesome !!!
Much thanks @vunb . Documenting it would be next to awesome :bouquet:
@SalathielGenese Okay! I am also considering update the document.
See the trail log