metrics calculation
This commit is contained in:
parent
6a4896c3b5
commit
d7e9121587
@ -1,9 +1,7 @@
|
|||||||
import pandas as pd
|
import pandas as pd
|
||||||
|
|
||||||
# df_data = pd.read_csv('./Infra/wikiniews_results.tsv', sep='\t', index_col=False, header=None,
|
df_data = pd.read_csv('./Infra/wikiniews_results.tsv', sep='\t', index_col=False, header=None,
|
||||||
# skip_blank_lines=False, keep_default_na=False)
|
skip_blank_lines=False, keep_default_na=False)
|
||||||
#
|
|
||||||
#
|
|
||||||
# print(df_data)
|
|
||||||
|
|
||||||
print('ok ok')
|
|
||||||
|
print(df_data)
|
@ -1,6 +1,7 @@
|
|||||||
num_lines = sum(1 for line in open('./Infra/wikiniews_results.tsv'))
|
num_lines = sum(1 for line in open('./Infra/wikiniews_results.tsv'))
|
||||||
|
|
||||||
|
print('lines number')
|
||||||
|
print(num_lines)
|
||||||
file = open('num_lines.txt', 'w')
|
file = open('num_lines.txt', 'w')
|
||||||
file.write(str(num_lines))
|
file.write(str(num_lines))
|
||||||
file.close()
|
file.close()
|
Loading…
Reference in New Issue
Block a user