Skip to content

Commit 7fc1ff1

Browse files
committed
Test change package link
1 parent 0becfed commit 7fc1ff1

File tree

1 file changed

+3
-13
lines changed

1 file changed

+3
-13
lines changed

docs/tutorial/tutorial-training/how-to-load-prepared-dataset.md

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,8 @@ This will print out the created dictionary:
115115
Dictionary with 17 tags: PROPN, PUNCT, ADJ, NOUN, VERB, DET, ADP, AUX, PRON, PART, SCONJ, NUM, ADV, CCONJ, X, INTJ, SYM
116116
```
117117

118-
#### Dictionaries for other label types
118+
119+
### Printing label statistics
119120

120121
If you don't know the label types in a corpus, just call [`Corpus.make_label_dictionary`](#flair.data.Corpus.make_label_dictionary) with
121122
any random label name (e.g. `corpus.make_label_dictionary(label_type='abcd')`). This will print
@@ -139,17 +140,6 @@ tense_dictionary = corpus.make_label_dictionary(label_type='number')
139140
If you print these dictionaries, you will find that the POS dictionary contains 50 tags and the number dictionary only 2 for this corpus (singular and plural).
140141

141142

142-
#### Dictionaries for other corpora types
143-
144-
The method [`Corpus.make_label_dictionary`](#flair.data.Corpus.make_label_dictionary) can be used for any corpus, including text classification corpora:
145-
146-
```python
147-
# create label dictionary for a text classification task
148-
from flair.datasets import TREC_6
149-
corpus = TREC_6()
150-
corpus.make_label_dictionary('question_class')
151-
```
152-
153143
### The MultiCorpus Object
154144

155145
If you want to train multiple tasks at once, you can use the [`MultiCorpus`](#flair.data.MultiCorpus) object.
@@ -181,7 +171,7 @@ The following datasets are supported:
181171

182172
| Task | Module |
183173
|-------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------|
184-
| Named Entity Recognition | [flair.datasets.sequence_labeling](#flair.datasets.sequence_labeling) |
174+
| Named Entity Recognition | [flair.datasets.sequence_labeling](../../api/datasets/sequence_labeling.html) |
185175
| Text Classification | [flair.datasets.document_classification](#flair.datasets.document_classification) |
186176
| Text Regression | [flair.datasets.document_classification](#flair.datasets.document_classification) |
187177
| Biomedical Named Entity Recognition | [flair.datasets.biomedical](#flair.datasets.biomedical) |

0 commit comments

Comments
 (0)