qanastek commited on
Commit
05e58d9
1 Parent(s): 49de83a

Update E3C.py

Browse files
Files changed (1) hide show
  1. E3C.py +2 -1
E3C.py CHANGED
@@ -2,6 +2,7 @@
2
 
3
  import os
4
  import random
 
5
 
6
  import datasets
7
 
@@ -67,7 +68,7 @@ class StringIndex:
67
 
68
  return "is_not_oov" if t in self.vocab_struct[key] else "is_oov"
69
 
70
- _VOCAB = StringIndex(vocab=open("./vocabulary_nachos_lowercased.txt","r").read().split("\n"))
71
 
72
  class E3C(datasets.GeneratorBasedBuilder):
73
 
 
2
 
3
  import os
4
  import random
5
+ import requests
6
 
7
  import datasets
8
 
 
68
 
69
  return "is_not_oov" if t in self.vocab_struct[key] else "is_oov"
70
 
71
+ _VOCAB = StringIndex(vocab=requests.get("https://huggingface.co/datasets/BioMedTok/vocabulary_nachos_lowercased/resolve/main/vocabulary_nachos_lowercased.txt").text.split("\n"))
72
 
73
  class E3C(datasets.GeneratorBasedBuilder):
74