qanastek commited on
Commit
9c2f006
·
1 Parent(s): b5c10aa

Update PxCorpus.py

Browse files
Files changed (1) hide show
  1. PxCorpus.py +2 -2
PxCorpus.py CHANGED
@@ -63,8 +63,6 @@ class StringIndex:
63
 
64
  class PxCorpus(datasets.GeneratorBasedBuilder):
65
 
66
- VOCAB = StringIndex(vocab=open("./vocabulary_nachos_lowercased.txt","r").read().split("\n"))
67
-
68
  BUILDER_CONFIGS = [
69
  datasets.BuilderConfig(name=f"default", version="1.0.0", description=f"PxCorpus data"),
70
  ]
@@ -139,6 +137,8 @@ class PxCorpus(datasets.GeneratorBasedBuilder):
139
 
140
  def getTokenTags(self, document):
141
 
 
 
142
  tokens = []
143
  ner_tags = []
144
  is_oov = []
 
63
 
64
  class PxCorpus(datasets.GeneratorBasedBuilder):
65
 
 
 
66
  BUILDER_CONFIGS = [
67
  datasets.BuilderConfig(name=f"default", version="1.0.0", description=f"PxCorpus data"),
68
  ]
 
137
 
138
  def getTokenTags(self, document):
139
 
140
+ VOCAB = StringIndex(vocab=open("./vocabulary_nachos_lowercased.txt","r").read().split("\n"))
141
+
142
  tokens = []
143
  ner_tags = []
144
  is_oov = []