Skip to content

Commit 13734fc

Browse files
committed
fixed compatibility issue of adapter-transformers
1 parent 20d1935 commit 13734fc

File tree

4 files changed

+13
-6
lines changed

4 files changed

+13
-6
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,10 @@ We also created a Demo Website for Trankit, which is hosted at: http://nlp.uoreg
5353
Trankit can be easily installed via one of the following methods:
5454
#### Using pip
5555
```
56-
pip install trankit
56+
pip install trankit==1.0.1
5757
```
5858
The command would install Trankit and all dependent packages automatically.
59-
Note that, due to [this issue](https://github.com/nlp-uoregon/trankit/issues/3) relating to [adapter-transformers](https://github.com/Adapter-Hub/adapter-transformers) which is an extension of the `transformers` library, users may need to uninstall `transformers` before installing `trankit` to avoid potential conflicts.
59+
Note that, starting from version `1.0.1`, [this issue](https://github.com/nlp-uoregon/trankit/issues/3) relating to [adapter-transformers](https://github.com/Adapter-Hub/adapter-transformers) has been fixed.
6060

6161
#### From source
6262
```

docs/source/commandline.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Users need to install Trankit via one of the following methods:
77

88
Pip:
99
```
10-
pip install trankit==1.0.0
10+
pip install trankit==1.0.1
1111
```
1212

1313
From source:
@@ -218,4 +218,4 @@ In this command, we can put more processing options at `[OPTIONS]`. Detailed des
218218

219219
-Part-of-speech tagging, Morphological tagging, Dependency parsing, Named Entity Recognition.
220220

221-
python -m trankit [other options] --task pall
221+
python -m trankit [other options] --task pall

docs/source/news.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ What's new in Trankit v1.0.0? Let's check out below.
55
### Installation
66

77
```
8-
pip install trankit==1.0.0
8+
pip install trankit==1.0.1
99
```
1010

1111
### Trankit large
@@ -67,4 +67,4 @@ p.set_auto(False)
6767
After this, our multilingual pipeline can be used in the manual mode where we can manually set a particular language active. As a final note, we use [langid](https://github.com/saffsd/langid.py) to perform language detection. The detected language for each input can be inspected by accessing the field `"lang"` of the output. Thank you [loretoparisi](https://github.com/loretoparisi) for your suggestion on this.
6868

6969
### Command-line interface
70-
Starting from version v1.0.0, Trankit supports processing text via command-line interface. This helps users who are not familiar with Python programming language can use Trankit more easily. Please check out [this page](https://trankit.readthedocs.io/en/latest/commandline.html) for tutorials and examples.
70+
Starting from version v1.0.0, Trankit supports processing text via command-line interface. This helps users who are not familiar with Python programming language can use Trankit more easily. Please check out [this page](https://trankit.readthedocs.io/en/latest/commandline.html) for tutorials and examples.

trankit/adapter_transformers/__init__.py

+7
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
'''
2+
Renamed the library and stored its copy internally to fix the conflict issue with the original transformers library.
3+
This directiory is borrowed from: https://github.com/Adapter-Hub/adapter-transformers/tree/451a0a8335a21fd383cbdf7f1bd33bfc9245f605
4+
5+
Date: 2021/04/03
6+
'''
7+
18
# flake8: noqa
29
# There's no way to ignore "F401 '...' imported but unused" warnings in this
310
# module, but to preserve other warnings. So, don't check this module at all.

0 commit comments

Comments
 (0)