metrics calculation
This commit is contained in:
parent
a9cd09752a
commit
fc25d4f58f
15
script.py
15
script.py
@ -1,11 +1,14 @@
|
||||
print('starting 2')
|
||||
import sys
|
||||
import reload
|
||||
# import sys
|
||||
# import reload
|
||||
#
|
||||
# reload(sys)
|
||||
# sys.setdefaultencoding('utf8')
|
||||
#
|
||||
# num_lines = sum(1 for line in open('./Infra/wikiniews_results.tsv'))
|
||||
|
||||
reload(sys)
|
||||
sys.setdefaultencoding('utf8')
|
||||
|
||||
num_lines = sum(1 for line in open('./Infra/wikiniews_results.tsv'))
|
||||
with open('./Infra/wikiniews_results.tsv') as f:
|
||||
num_lines = (f.readlines())
|
||||
|
||||
print('lines number')
|
||||
print(num_lines)
|
||||
|
Loading…
Reference in New Issue
Block a user