-
Notifications
You must be signed in to change notification settings - Fork 18
/
setup.py
67 lines (63 loc) · 2.73 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
from setuptools import find_packages, setup
setup(
name = 'mordecai3',
version='3.0.0a',
url='http://github.com/ahalterman/mordecai3/',
author='Andy Halterman',
author_email='ahalterman0@gmail.com',
license='MIT',
keywords = ['geoparsing', 'nlp', 'geocoding', 'toponym resolution'],
packages=find_packages(),
install_requires = ['typer>=0.3.2,<1.0',
'spacy-transformers>=1.0.1,<2.0',
'transformers>=4.2.2,<5.0',
'spacy>=3.5,<4.0',
'torch>=1.2.0,<2.0',
'elasticsearch>=7.11.0,<8.0',
'elasticsearch-dsl>=7.3.0,<8.0',
'scikit-learn>=0.24.1',
'pandas>=1.2.2,<2.0',
'jellyfish>=0.8.2,<2.0',
'tqdm>=4.56.1,<5.0',
'numpy>=1.19.5,<2.0',
'jsonlines>=3.0.0,<4.0',
'xmltodict>=0.12.0,<1.0'],
dependency_links=['https://github.com/explosion/spacy-models/releases/download/en_core_web_trf-3.5.0/en_core_web_trf-3.5.0.tar.gz'],
include_package_data=True,
package_data = {'mordecai3': ['assets/admin1CodesASCII.json',
'assets/country_bert_768.npy',
'assets/countryInfo.txt',
'assets/feature_code_dict.json',
'assets/hierarchy.txt',
'assets/mordecai_2023-03-28.pt',
'assets/wikipedia-iso-country-codes.txt']}
)
#from setuptools import setup
#
#setup(name='mordecai',
# version='2.1.0',
# description='Full text geoparsing and event geocoding',
# url='http://github.com/openeventdata/mordecai/',
# author='Andy Halterman',
# author_email='ahalterman0@gmail.com',
# license='MIT',
# packages=['mordecai'],
# keywords = ['geoparsing', 'nlp', 'geocoding', 'toponym resolution'],
# install_requires = ['editdistance>=0.5.3',
# 'elasticsearch==5.4.0',
# 'elasticsearch-dsl==5.3.0',
# 'h5py>=2.10.0',
# 'pandas>=0.24.2',
# 'spacy>=2.3,<3.0',
# 'tensorflow>=2.2.0',
# 'tqdm>=4.28.1',
# 'numpy>=1.12'],
# dependency_links=['https://github.com/explosion/spacy-models/releases/download/en_core_web_lg-2.3.1/en_core_web_lg-2.3.1.tar.gz'],
# include_package_data=True,
# package_data = {'data': ['admin1CodesASCII.json',
# 'countries.json',
# 'nat_df.csv',
# 'stopword_country_names.json'],
# 'models' : ['country_model.h5',
# 'rank_model.h5']}
# )