martynawck
commited on
Commit
•
4383f0c
1
Parent(s):
525c2da
Create README.md
Browse files
README.md
ADDED
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Model description
|
2 |
+
|
3 |
+
- Morphosyntactic analyzer: Spacy
|
4 |
+
- Tagset: NKJP
|
5 |
+
- Embedding vectors: Transformer
|
6 |
+
- Dataset: NLPrePL-NKJP-fair-by-name (https://huggingface.co/datasets/ipipan/nlprepl)
|
7 |
+
|
8 |
+
# How to use
|
9 |
+
|
10 |
+
## Clone
|
11 |
+
|
12 |
+
```
|
13 |
+
git clone [email protected]:ipipan/nlpre_spacy_nkjp_transformer_nkjp-by-name
|
14 |
+
```
|
15 |
+
|
16 |
+
## Load model
|
17 |
+
|
18 |
+
```
|
19 |
+
import spacy
|
20 |
+
|
21 |
+
model_name = './nlpre_spacy_nkjp_transformer_nkjp-by-name'
|
22 |
+
model_upos = spacy.load(model_name + '/upos')
|
23 |
+
model_xpos = spacy.load(model_name + '/xpos+lemma')
|
24 |
+
```
|