diff --git a/word2vec.py b/word2vec.py index 555ea4c..8ee9be2 100644 --- a/word2vec.py +++ b/word2vec.py @@ -40,6 +40,8 @@ import numpy as np import tensorflow as tf + +print("abbas") word2vec = tf.load_op_library(os.path.join(os.path.dirname(os.path.realpath(__file__)), 'word2vec_ops.so')) flags = tf.app.flags diff --git a/word2vec_gensim.py b/word2vec_gensim.py index 367e8de..4d76327 100644 --- a/word2vec_gensim.py +++ b/word2vec_gensim.py @@ -1,20 +1,3 @@ -# -*- coding: utf-8 -*- - -# Copyright 2017 Amir Hadifar. All Rights Reserved. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# ============================================================================== - from gensim.models import KeyedVectors from gensim.models import Word2Vec from gensim.models.word2vec import LineSentence