Commit 8219e137 authored by Ajay Patel's avatar Ajay Patel

Release 0.0.15

parents
Pipeline #17984544 failed with stages
in 101 minutes and 13 seconds
# Compiled python modules.
*.pyc
# Setuptools distribution folder.
/dist/
# Python egg metadata, regenerated from source files by setuptools.
/*.egg-info
/*.egg
\ No newline at end of file
image: python:latest
services:
- docker:dind
variables:
MAGNITUDE_FILE: http://magnitude.plasticity.ai/word2vec/GoogleNews-vectors-negative300.magnitude
stages:
- Test Python 2
- Test Python 3
- Deploy to PyPI
before_script:
# Setup package manager
- apt-get update 2>&1 >/dev/null
- apt-get install curl wget -y
- apt-get install python-setuptools -y
- apt-get install python3-setuptools -y
- apt-get install python-dev -y
- apt-get install python3-dev -y
# Install gettext for envsubst
- apt-get install gettext -y
Test Python 2:
stage: Test Python 2
script:
- wget --quiet http://magnitude.plasticity.ai/word2vec/GoogleNews-vectors-negative300.magnitude
- wget --quiet http://magnitude.plasticity.ai/word2vec+subword/GoogleNews-vectors-negative300.magnitude -O GoogleNews-vectors-negative300.subword.magnitude
- wget --quiet http://magnitude.plasticity.ai/word2vec+approx/GoogleNews-vectors-negative300.magnitude -O GoogleNews-vectors-negative300.approx.magnitude
- python2 setup.py install
- pip2 install gensim
- python2 -m pymagnitude.converter -i tests/models/word2vec.txt -o out.magnitude
- python2 -m pymagnitude.converter -i tests/models/word2vec.bin -o out.magnitude
- python2 -m pymagnitude.converter -i tests/models/glove.txt -o out.magnitude
- python2 -m pymagnitude.converter -i tests/models/fasttext.vec -o out.magnitude
- python2 -m pymagnitude.converter -i tests/models/word2vec.txt -o out.magnitude -s
- python2 -m pymagnitude.converter -i tests/models/word2vec.bin -o out.magnitude -s
- python2 -m pymagnitude.converter -i tests/models/glove.txt -o out.magnitude -s
- python2 -m pymagnitude.converter -i tests/models/fasttext.vec -o out.magnitude -s
- python2 -m tests.tests -i GoogleNews-vectors-negative300.magnitude -s GoogleNews-vectors-negative300.subword.magnitude -a GoogleNews-vectors-negative300.approx.magnitude
only:
- master
Test Python 3:
stage: Test Python 3
script:
- wget --quiet http://magnitude.plasticity.ai/word2vec/GoogleNews-vectors-negative300.magnitude
- wget --quiet http://magnitude.plasticity.ai/word2vec+subword/GoogleNews-vectors-negative300.magnitude -O GoogleNews-vectors-negative300.subword.magnitude
- wget --quiet http://magnitude.plasticity.ai/word2vec+approx/GoogleNews-vectors-negative300.magnitude -O GoogleNews-vectors-negative300.approx.magnitude
- python3 setup.py install
- pip3 install gensim
- python3 -m pymagnitude.converter -i tests/models/word2vec.txt -o out.magnitude
- python3 -m pymagnitude.converter -i tests/models/word2vec.bin -o out.magnitude
- python3 -m pymagnitude.converter -i tests/models/glove.txt -o out.magnitude
- python3 -m pymagnitude.converter -i tests/models/fasttext.vec -o out.magnitude
- python3 -m pymagnitude.converter -i tests/models/word2vec.txt -o out.magnitude -s
- python3 -m pymagnitude.converter -i tests/models/word2vec.bin -o out.magnitude -s
- python3 -m pymagnitude.converter -i tests/models/glove.txt -o out.magnitude -s
- python3 -m pymagnitude.converter -i tests/models/fasttext.vec -o out.magnitude -s
- python3 -m tests.tests -i GoogleNews-vectors-negative300.magnitude -s GoogleNews-vectors-negative300.subword.magnitude -a GoogleNews-vectors-negative300.approx.magnitude
only:
- master
Deploy to PyPI:
stage: Deploy to PyPI
script:
- envsubst < deployment/.pypirc > ~/.pypirc
- chmod 600 ~/.pypirc
- python setup.py register -r pypitest
- python setup.py sdist upload -r pypitest
- python setup.py register -r pypi
- python setup.py sdist upload -r pypi
only:
- master
MIT License
Copyright (C) 2018, Plasticity Inc. opensource@plasticity.ai
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
of the Software, and to permit persons to whom the Software is furnished to do
so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
\ No newline at end of file
This diff is collapsed.
[distutils]
index-servers =
pypi
pypitest
[pypi]
repository=https://pypi.python.org/pypi
username=plasticity
password=$PYPI_TEST_PASSWORD
[pypitest]
repository=https://testpypi.python.org/pypi
username=plasticity
password=$PYPI_PASSWORD
This diff is collapsed.
This diff is collapsed.
try:
__import__('pkg_resources').declare_namespace(__name__)
except ImportError:
__path__ = __import__('pkgutil').extend_path(__path__, __name__)
This diff is collapsed.
This diff is collapsed.
License
A copyright notice accompanies this license document that identifies
the copyright holders.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:
1. Redistributions in source code must retain the accompanying
copyright notice, this list of conditions, and the following
disclaimer.
2. Redistributions in binary form must reproduce the accompanying
copyright notice, this list of conditions, and the following
disclaimer in the documentation and/or other materials provided
with the distribution.
3. Names of the copyright holders must not be used to endorse or
promote products derived from this software without prior
written permission from the copyright holders.
4. If any files are modified, you must cause the modified files to
carry prominent notices stating that you changed the files and
the date of any change.
Disclaimer
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS ``AS IS'' AND
ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
HOLDERS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED
TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR
TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF
THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
SUCH DAMAGE.
[metadata]
description-file = README.md
\ No newline at end of file
from setuptools import find_packages
from distutils.core import setup
setup(
name='pymagnitude',
packages=find_packages(exclude=['tests', 'tests.*']),
version='0.0.15',
description='A universal Python package for utilizing vector embeddings in a fast, efficient manner.',
author='Plasticity',
author_email='support@plasticity.ai',
url='http://plasticity.ai/api',
keywords=['pymagnitude', 'magnitude', 'plasticity', 'nlp',
'word', 'vector', 'embeddings', 'embedding', 'word2vec',
'gensim', 'alternative', 'machine', 'learning', 'annoy',
'index', 'approximate', 'nearest', 'neighbors'],
license='MIT',
setup_requires=[
'numpy >= 1.14.0'
],
install_requires=[
'pip >= 9.0.1',
'numpy >= 1.14.0',
'xxhash >= 1.0.1',
'fasteners >= 0.14.1',
'annoy >= 1.11.4',
'lz4 >= 1.0.0'
],
classifiers=[
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.2',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4'
],
)
\ No newline at end of file
This diff is collapsed.
5 2
the 0.418 0.24968
that 0.88387 -0.14199
on 0.30045 0.25006
be 0.6185 0.64254
said 0.38973 -0.2121
\ No newline at end of file
the 0.418 0.24968
that 0.88387 -0.14199
on 0.30045 0.25006
be 0.6185 0.64254
said 0.38973 -0.2121
\ No newline at end of file
5 2
the Ö>¬>
that NEb?Ôe¾
on •Ô™>Ý€>
be V?€}$?
said ±ŠÇ>¾0Y¾
5 2
the 0.418 0.24968
that 0.88387 -0.14199
on 0.30045 0.25006
be 0.6185 0.64254
said 0.38973 -0.2121
\ No newline at end of file
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment