forked from dopefishh/pympi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
131 lines (99 loc) · 3.52 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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from distutils.core import setup
licence = 'MIT Licence'
version = '1.70.2'
setup(name='pympi-ling',
version=version,
description=
'A python module for processing ELAN and Praat annotation files',
author='Mart Lubbers',
long_description=r"""
pympi version 1.70.2
====================
Introduction
------------
Pympi is a package that allows you to interact with `Elan`_ files and
`TextGrid`_ files. You can create, edit and convert both formats into
each other. It includes besides all the basic functions also functions
for: - Calculating gaps and overlaps between speakers conform `Heldner
and Edlund’s method`_. (Could be used to calculate floor transfers) -
Shift annotations in both directions (Could be used when due to an error
all annotations are misaligned). - Import from CLAN’s chat files. -
Merge and or filter tiers (Could be used to combine hands in gesture
coding) - Move tiers between elan files. - Etc.
Requirements
------------
None
Optional requirements
---------------------
- `lxml`_ is used for testing.
Documentation and downloads
---------------------------
Full api documentation of the current and old versions can be found on
`here`_.
Pypi repository location can be found
`here <https://pypi.python.org/pypi/pympi-ling/>`__.
Installation
------------
Automatic
~~~~~~~~~
- From a shell run with administrator rights:
.. code:: shell
pip install pympi-ling
- Or alternatively run with administrator rights:
.. code:: shell
easy_install pympi-ling
*NOTE: on windows the executable might not be in $PATH.*
Manual
~~~~~~
1. Download the latest version from `pypi`_
2. Untar the file
3. From that directory run with administrator rights
.. code:: shell
python setup.py install
How to cite
-----------
.. code:: tex
@misc{pympi-1.70,
author={Lubbers, Mart and Torreira, Francisco},
title={pympi-ling: a Python module for processing ELANs EAF and Praats TextGrid annotation files.},
howpublished={\url{https://pypi.python.org/pypi/pympi-ling}},
year={2013-2021},
note={Version 1.70}
}
Authors
-------
Mart Lubbers (mart at martlubbers.net)
and
Francisco Toreirra (francisco.torreira at mpi.nl)
and with contributions from:
sarpu, hadware, thomaskisler, mome, mimrock and xrotwang
.. _Elan: https://tla.mpi.nl/tools/tla-tools/elan/
.. _TextGrid: http://www.fon.hum.uva.nl/praat/
.. _Heldner and Edlund’s method: http://www.sciencedirect.com/science/article/pii/S0095447010000628
.. _lxml: http://lxml.de/
.. _here: http://dopefishh.github.io/pympi/
.. _pypi: http://dopefishh.github.io/pympi/""",
author_email='[email protected]',
url='https://github.com/dopefishh/pympi',
classifiers=['Development Status :: 5 - Production/Stable',
'Environment :: Console',
'Natural Language :: English',
'Operating System :: OS Independent',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Topic :: Text Processing :: Linguistic'],
packages=['pympi'],
extras_require={
'test': [
'pytest>=5',
'pytest-mock',
'pytest-cov',
'coverage>=4.2',
'lxml',
],
})