-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathsetup.py
More file actions
31 lines (28 loc) · 835 Bytes
/
setup.py
File metadata and controls
31 lines (28 loc) · 835 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!usr/bin/env python
# -*- coding:utf-8 -*-
import io
from setuptools import setup, find_packages
def _get_readme():
"""
Use pandoc to generate rst from md.
pandoc --from=markdown --to=rst --output=README.rst README.md
"""
with io.open("README.rst", encoding='utf-8') as fid:
return fid.read()
setup(
name='bert4vec',
version='0.3.0',
description='Chinese Sentence Embeddings using SimBERT / RoFormer-Sim / Paraphrase-Multilingual-MiniLM',
long_description=_get_readme(),
license='Apache License 2.0',
url='https://github.com/zejunwang1/bert4vec',
author='wangzejun',
author_email='wangzejunscut@126.com',
install_requires=[
'transformers>=4.6.0,<5.0.0',
'torch>=1.6.0',
'numpy',
'huggingface-hub'
],
packages=find_packages()
)