You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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).
140
141
141
142
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 importTREC_6
149
-
corpus = TREC_6()
150
-
corpus.make_label_dictionary('question_class')
151
-
```
152
-
153
143
### The MultiCorpus Object
154
144
155
145
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:
0 commit comments