Robert Stone commited on
Commit
a1b3371
1 Parent(s): 7f6e703

rename config "raw" to "unprocessed"

Browse files
Files changed (2) hide show
  1. README.md +2 -2
  2. spamassassin.py +2 -2
README.md CHANGED
@@ -26,8 +26,8 @@ This is a selection of mail messages, suitable for use in testing spam filtering
26
 
27
  - The `text` config normalizes all character sets to utf8 and dumps the
28
  MIME tree as a JSON list of lists.
29
- - The `raw` config does not parse messages at all, leaving the full
30
- headers and content as binary.
31
 
32
  ### Data Fields
33
 
 
26
 
27
  - The `text` config normalizes all character sets to utf8 and dumps the
28
  MIME tree as a JSON list of lists.
29
+ - The `unprocessed` config does not parse messages at all, leaving the
30
+ full headers and content as binary.
31
 
32
  ### Data Fields
33
 
spamassassin.py CHANGED
@@ -136,7 +136,7 @@ class SpamAssassin(datasets.GeneratorBasedBuilder):
136
  description="Flattened mime data and normalized character sets",
137
  ),
138
  datasets.BuilderConfig(
139
- name="raw",
140
  version=VERSION,
141
  description="Raw original input files in binary",
142
  ),
@@ -145,7 +145,7 @@ class SpamAssassin(datasets.GeneratorBasedBuilder):
145
  DEFAULT_CONFIG_NAME = "text"
146
 
147
  def _info(self):
148
- if self.config.name == "raw":
149
  features = {'raw': datasets.Value(dtype='binary')}
150
  else:
151
  features = {'text': datasets.Value(dtype='string')}
 
136
  description="Flattened mime data and normalized character sets",
137
  ),
138
  datasets.BuilderConfig(
139
+ name="unprocessed",
140
  version=VERSION,
141
  description="Raw original input files in binary",
142
  ),
 
145
  DEFAULT_CONFIG_NAME = "text"
146
 
147
  def _info(self):
148
+ if self.config.name == "unprocessed":
149
  features = {'raw': datasets.Value(dtype='binary')}
150
  else:
151
  features = {'text': datasets.Value(dtype='string')}