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