Repository navigation
Expand file tree
/
Copy pathsetup.py
More file actions
49 lines (41 loc) · 1.46 KB
/
Copy pathsetup.py
File metadata and controls
49 lines (41 loc) · 1.46 KB
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# -*- coding: utf-8 -*-
from setuptools import setup, find_packages
LONGDOC = """
embeddings-zh
=====================
Embeddings with Chatopera Synonyms for chatbot, RAG. Support Simplified Chinese and Traditional Chinese.
https://github.com/chatopera/embeddings-zh
Model: https://github.com/chatopera/Synonyms
pip install -U embeddings-zh
Usage::
from embeddings_zh import EmbeddingsZh
emb = EmbeddingsZh()
vector1 = emb.embed_documents([texts]) # e.g. emb.embed_documents(["今天天气怎么样", "有什么推荐"])
vector2 emb.embed_query(texts) # e.g. emb.embed_documents("有什么推荐")
"""
setup(
name='embeddings-zh',
version='0.0.7',
description='Embeddings with Chatopera Synonyms for chatbot, RAG.',
long_description=LONGDOC,
author='Hai Liang Wang',
author_email='info@chatopera.com',
url='https://github.com/chatopera/embeddings-zh',
license="Chunsong Public License, version 1.0",
classifiers=[
'Intended Audience :: Developers',
'Operating System :: OS Independent',
'Natural Language :: Chinese (Simplified)',
'Natural Language :: Chinese (Traditional)',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.11'
],
keywords='embeddings,nlp',
packages=find_packages(),
install_requires=[
'synonyms>=3.25.1'
],
package_data={
'synonyms': [
'LICENSE']})