Skip to content

Commit

Permalink
Typo: 'infile' --> 'in_file' * 4
Browse files Browse the repository at this point in the history
Sorry about that...


flake8 testing of https://github.com/jiesutd/NCRFpp on Python 3.6.3

$ __flake8 . --count --select=E901,E999,F821,F822,F823 --show-source --statistics__
```
./utils/tagSchemeConverter.py:19:16: F821 undefined name 'infile'
        fins = infile.readlines()
               ^
./utils/tagSchemeConverter.py:56:16: F821 undefined name 'infile'
        fins = infile.readlines()
               ^
./utils/tagSchemeConverter.py:88:16: F821 undefined name 'infile'
        fins = infile.readlines()
               ^
./utils/tagSchemeConverter.py:117:16: F821 undefined name 'infile'
        fins = infile.readlines()
               ^
4     F821 undefined name 'infile'
4
```
  • Loading branch information
cclauss committed Jul 2, 2018
1 parent 141ce5c commit 8dc2999
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions utils/tagSchemeConverter.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
def BIO2BIOES(input_file, output_file):
print("Convert BIO -> BIOES for file:", input_file)
with open(input_file,'r') as in_file:
fins = infile.readlines()
fins = in_file.readlines()
fout = open(output_file,'w')
words = []
labels = []
Expand Down Expand Up @@ -53,7 +53,7 @@ def BIO2BIOES(input_file, output_file):
def BIOES2BIO(input_file, output_file):
print("Convert BIOES -> BIO for file:", input_file)
with open(input_file,'r') as in_file:
fins = infile.readlines()
fins = in_file.readlines()
fout = open(output_file,'w')
words = []
labels = []
Expand Down Expand Up @@ -85,7 +85,7 @@ def BIOES2BIO(input_file, output_file):
def IOB2BIO(input_file, output_file):
print("Convert IOB -> BIO for file:", input_file)
with open(input_file,'r') as in_file:
fins = infile.readlines()
fins = in_file.readlines()
fout = open(output_file,'w')
words = []
labels = []
Expand Down Expand Up @@ -114,7 +114,7 @@ def IOB2BIO(input_file, output_file):

def choose_label(input_file, output_file):
with open(input_file,'r') as in_file:
fins = infile.readlines()
fins = in_file.readlines()
with open(output_file,'w') as fout:
for line in fins:
if len(line) < 3:
Expand Down

0 comments on commit 8dc2999

Please sign in to comment.