-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
73 lines (68 loc) · 1.98 KB
/
setup.py
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
# coding=utf-8
import re
from os import path
from codecs import open
from setuptools import setup
here = path.abspath(path.dirname(__file__))
# Get the version string
with open(path.join(here, 'promptcraft/__init__.py'), encoding='utf-8') as f:
version = re.search(r'__version__ = \'(.*?)\'', f.read()).group(1)
# Get the long description from the README file
with open(path.join(here, 'README.md'), encoding='utf-8') as f:
readme = f.read()
setup(
name='promptcraft',
version=version,
description='PromptCraft: A Prompt Perturbation Toolkit for Prompt Robustness Analysis',
long_description=readme,
long_description_content_type='text/markdown',
url='https://github.com/SuperBruceJia/promptcraft',
author='Shuyue Jia',
author_email='[email protected]',
license='MIT',
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Science/Research',
'Topic :: Scientific/Engineering :: Artificial Intelligence',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 3.9',
],
keywords=[
'prompt perturbation',
'prompt',
'prompt toolkit',
'natural language prompt',
'large language models',
'llm',
'llms',
'prompt engineering',
'prompt generator',
'prompt optimization',
'prompt',
'prompt robustness',
'llm robustness',
'llms adversarial attack',
'character editing',
'word manipulation',
'sentence paraphrasing'
],
package_data={"": ["*.py"]},
packages=["promptcraft"],
include_package_data=True,
install_requires=[
'torch',
'bitsandbytes',
'transformers',
'pandas',
'Levenshtein',
'scipy',
'sklearn_pandas',
'scikit-learn',
'sentence_transformers',
'googletrans==3.1.0a0',
'nltk',
'sacremoses',
'sentencepiece',
'protobuf'
],
)