-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathsetup.py
executable file
·44 lines (36 loc) · 1.17 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
# -*- coding: utf-8 -*-
# Learn more: https://github.com/kennethreitz/setup.py
from setuptools import setup, find_packages
# def read_requirements():
# """parse requirements from requirements.txt."""
# reqs_path = os.path.join("", "requirements.txt")
# with open(reqs_path, "r") as f:
# requirements = [line.rstrip() for line in f]
# return requirements
with open("README.md", encoding="utf-8") as f:
readme = f.read()
with open("LICENSE", encoding="utf-8") as f:
license = f.read()
setup(
name="medner_j",
version="0.1.0",
description="MedNER-J: Japanese Disease Extractor based on BERT+CRF.",
long_description=readme,
author="Shogo Ujiie",
author_email="[email protected]",
url="https://github.com/sociocom/MedNER-J/tree/package",
license=license,
packages=find_packages(exclude=("tests", "docs")),
install_requires=[
"mecab-python3",
"torch",
"transformers",
"allennlp<=2.6.0",
"dnorm_j @ git+https://github.com/sociocom/DNorm-J.git@fix-versions"
],
entry_points={
"console_scripts": [
"mednerj = medner_j.__main__:main"
]
}
)