wics commited on
Commit
e310071
·
1 Parent(s): 854c71c

Update NCR.py

Browse files
Files changed (1) hide show
  1. NCR.py +3 -1
NCR.py CHANGED
@@ -101,7 +101,9 @@ class NCR(datasets.GeneratorBasedBuilder):
101
  def pure(sens):
102
  if sens.startswith('A') or sens.startswith('B') or sens.startswith('C') or sens.startswith('D'):
103
  sens = sens[1:]
104
- return sens.replace(".","").replace("","").strip()
 
 
105
 
106
  with open(filepath, encoding="utf-8") as f:
107
  data = json.loads(f.read())
 
101
  def pure(sens):
102
  if sens.startswith('A') or sens.startswith('B') or sens.startswith('C') or sens.startswith('D'):
103
  sens = sens[1:]
104
+ if sens.startswith('.') or sens.startswith(''):
105
+ sens = sens[1:]
106
+ return sens.strip()
107
 
108
  with open(filepath, encoding="utf-8") as f:
109
  data = json.loads(f.read())