Update README.md
Browse files
README.md
CHANGED
|
@@ -20,7 +20,7 @@ est-roberta-ud-ner is an [Est-RoBERTa](https://huggingface.co/EMBEDDIA/est-rober
|
|
| 20 |
|
| 21 |
|
| 22 |
### How to use
|
| 23 |
-
The model can be used with Transformers pipeline for NER.
|
| 24 |
```
|
| 25 |
from transformers import pipeline
|
| 26 |
|
|
@@ -39,7 +39,12 @@ print(results)
|
|
| 39 |
|
| 40 |
- **Repository:** [github.com/martinkivisikk/ner_thesis](https://github.com/martinkivisikk/ner_thesis)
|
| 41 |
- **Paper:** [Developing a NER Model Based on Treebank Corpora]()
|
| 42 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 43 |
## Uses
|
| 44 |
|
| 45 |
<!-- Address questions around how the model is intended to be used, including the foreseeable users of the model and those affected by the model. -->
|
|
|
|
| 20 |
|
| 21 |
|
| 22 |
### How to use
|
| 23 |
+
The model can be used with Transformers pipeline for NER. Try it in Google Colab, where the Transformers library is pre-installed or on your local machine (preferably using a virtual environment, see tutorial below) and install the Transformers library using ```pip install transformers```.
|
| 24 |
```
|
| 25 |
from transformers import pipeline
|
| 26 |
|
|
|
|
| 39 |
|
| 40 |
- **Repository:** [github.com/martinkivisikk/ner_thesis](https://github.com/martinkivisikk/ner_thesis)
|
| 41 |
- **Paper:** [Developing a NER Model Based on Treebank Corpora]()
|
| 42 |
+
### Virtual environment setup
|
| 43 |
+
Create and activate a virtual environment in your project directory with venv.
|
| 44 |
+
```
|
| 45 |
+
python -m venv .env
|
| 46 |
+
source .env/bin/activate
|
| 47 |
+
```
|
| 48 |
## Uses
|
| 49 |
|
| 50 |
<!-- Address questions around how the model is intended to be used, including the foreseeable users of the model and those affected by the model. -->
|