(by @andrestaltz)
(orginal source: https://gist.github.com/staltz/868e7e9bc2a7b8c1f754)
| [ | |
| { | |
| "_id": 1, | |
| "texts": [ | |
| { "language": "english", "text": "hello" }, | |
| { "language": "german", "text": "hallo" }, | |
| { "language": "french", "text": "bonjour" } | |
| ] | |
| }, … | |
| ] |
(by @andrestaltz)
(orginal source: https://gist.github.com/staltz/868e7e9bc2a7b8c1f754)
| # required tensorflow 0.12 | |
| # required gensim 0.13.3+ for new api model.wv.index2word or just use model.index2word | |
| from gensim.models import Word2Vec | |
| import tensorflow as tf | |
| from tensorflow.contrib.tensorboard.plugins import projector | |
| # loading your gensim | |
| model = Word2Vec.load("YOUR-MODEL") |
| export CUDA_HOME=/usr/local/cuda | |
| export NVIDIA_HOME=/usr/local/nvidia | |
| export PATH=${CUDA_HOME}/bin:${PATH} | |
| export LD_LIBRARY_PATH=${CUDA_HOME}/lib64:${LD_LIBRARY_PATH} |
| # Kernel sysctl configuration file for Red Hat Linux | |
| # | |
| # For binary values, 0 is disabled, 1 is enabled. See sysctl(8) and | |
| # sysctl.conf(5) for more details. | |
| # Turn on execshield | |
| # 0 completely disables ExecShield and Address Space Layout Randomization | |
| # 1 enables them ONLY if the application bits for these protections are set to “enable” | |
| # 2 enables them by default, except if the application bits are set to “disable” | |
| # 3 enables them always, whatever the application bits |
| export ROOT="${HOME}/wii-linux" | |
| export BUILDDIR="${PWD}" | |
| export LFS_TGT=powerpc-linux | |
| export PATH="${PATH}:${BUILDDIR}/tools/bin:${ROOT}/bin" | |
| ( | |
| wget -c 'http://www.linuxfromscratch.org/patches/lfs/7.2/binutils-2.22-build_fix-1.patch' | |
| wget -c 'http://ftp.gnu.org/gnu/binutils/binutils-2.22.tar.gz' | |
| wget -c 'http://ftp.gnu.org/gnu/mpfr/mpfr-3.1.1.tar.xz' | |
| wget -c 'http://ftp.gnu.org/gnu/gmp/gmp-5.0.5.tar.xz' |