imvladikon commited on
Commit
58726e0
1 Parent(s): c3cdfca

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +6 -0
README.md CHANGED
@@ -51,6 +51,12 @@ for sample in ds["train"]:
51
  ds = load_dataset('imvladikon/nemo_corpus', "nested")
52
  ```
53
 
 
 
 
 
 
 
54
 
55
  ## Dataset Description
56
  it's README.md of the [original repository](https://github.com/OnlpLab/NEMO-Corpus)
 
51
  ds = load_dataset('imvladikon/nemo_corpus', "nested")
52
  ```
53
 
54
+ Getting classes and encoding/decoding could be done like through
55
+ ```
56
+ idx2label = dataset["train"].features["ner_tags"].feature.int2str
57
+ label2idx = dataset["train"].features["ner_tags"].feature.str2int
58
+ ```
59
+
60
 
61
  ## Dataset Description
62
  it's README.md of the [original repository](https://github.com/OnlpLab/NEMO-Corpus)