Skip to content

Instantly share code, notes, and snippets.

View BrikerMan's full-sized avatar
🎯
Focusing

Eliyar Eziz BrikerMan

🎯
Focusing
View GitHub Profile
# encoding: utf-8
"""
@author: BrikerMan
@contact: eliyar917@gmail.com
@blog: https://eliyar.biz
@version: 1.0
@license: Apache Licence
@file: pre_process
@time: 2018/11/18
@BrikerMan
BrikerMan / seq2seq.ipynb
Created May 14, 2019 10:52
seq2seq.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
report=$( mktemp )
echo "# Environment Debugging" >> $report
echo "" >> $report
echo $"This file will generate an report file Yodo1 for debugging." >> $report
echo "" >> $report
echo $"## Pod Environment" >> $report
echo $"`pod env`" >> $report
echo "" >> $report
echo $"### Podfile.lock" >> $report
from gensim.models import KeyedVectors
# Load gensim word2vec
w2v_path = '<Gensim File Path>'
w2v = KeyedVectors.load_word2vec_format(w2v_path)
import io
# Vector file, `\t` seperated the vectors and `\n` seperate the words
"""
@BrikerMan
BrikerMan / nlp-preprosssing.ipynb
Last active May 1, 2022 06:53
nlp-preprosssing.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.