Sam commited on
Commit
35f924d
1 Parent(s): f6b7228

Update from sam

Browse files
Files changed (1) hide show
  1. Arguement_Mining_CL2017.py +3 -5
Arguement_Mining_CL2017.py CHANGED
@@ -116,18 +116,16 @@ class ArguementMiningCL2017(datasets.GeneratorBasedBuilder):
116
  "tokens": tokens,
117
  "chunk_tags": chunk_tags,
118
  }
119
- guid = ' '
120
  tokens = []
121
  chunk_tags = []
122
  else:
123
  # cl2017 tokens are space separated
124
  line=line.strip('\n')
125
- print(line)
126
  splits = line.split("\t")
127
  print(splits)
128
- guid = splits[0]
129
- tokens.append(splits[1])
130
- chunk_tags.append(splits[2])
131
  #print({"id": str(guid),"tokens": tokens,"chunk_tags": chunk_tags,})
132
  # last example
133
  yield guid, {
 
116
  "tokens": tokens,
117
  "chunk_tags": chunk_tags,
118
  }
119
+ guid = guid+1
120
  tokens = []
121
  chunk_tags = []
122
  else:
123
  # cl2017 tokens are space separated
124
  line=line.strip('\n')
 
125
  splits = line.split("\t")
126
  print(splits)
127
+ tokens.append(splits[0])
128
+ chunk_tags.append(splits[0])
 
129
  #print({"id": str(guid),"tokens": tokens,"chunk_tags": chunk_tags,})
130
  # last example
131
  yield guid, {