Skip to content

Commit

Permalink
fixed compatibility issue of adapter-transformers
Browse files Browse the repository at this point in the history
  • Loading branch information
minhhdvn committed Apr 3, 2021
1 parent 20d1935 commit 13734fc
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 6 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,10 @@ We also created a Demo Website for Trankit, which is hosted at: http://nlp.uoreg
Trankit can be easily installed via one of the following methods:
#### Using pip
```
pip install trankit
pip install trankit==1.0.1
```
The command would install Trankit and all dependent packages automatically.
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.
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.

#### From source
```
Expand Down
4 changes: 2 additions & 2 deletions docs/source/commandline.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Users need to install Trankit via one of the following methods:

Pip:
```
pip install trankit==1.0.0
pip install trankit==1.0.1
```

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

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

python -m trankit [other options] --task pall
python -m trankit [other options] --task pall
4 changes: 2 additions & 2 deletions docs/source/news.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ What's new in Trankit v1.0.0? Let's check out below.
### Installation

```
pip install trankit==1.0.0
pip install trankit==1.0.1
```

### Trankit large
Expand Down Expand Up @@ -67,4 +67,4 @@ p.set_auto(False)
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.

### Command-line interface
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.
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.
7 changes: 7 additions & 0 deletions trankit/adapter_transformers/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
'''
Renamed the library and stored its copy internally to fix the conflict issue with the original transformers library.
This directiory is borrowed from: https://github.com/Adapter-Hub/adapter-transformers/tree/451a0a8335a21fd383cbdf7f1bd33bfc9245f605
Date: 2021/04/03
'''

# flake8: noqa
# There's no way to ignore "F401 '...' imported but unused" warnings in this
# module, but to preserve other warnings. So, don't check this module at all.
Expand Down

0 comments on commit 13734fc

Please sign in to comment.