update code
Browse files
app.py
CHANGED
@@ -57,11 +57,13 @@ def file_preprocessing(file, skipfirst, skiplast):
|
|
57 |
def preproc_count(filepath, skipfirst, skiplast):
|
58 |
input_text = file_preprocessing(filepath, skipfirst, skiplast)
|
59 |
text_length = len(input_text)
|
|
|
60 |
return input_text, text_length
|
61 |
|
62 |
|
63 |
def postproc_count(summary):
|
64 |
text_length = len(summary)
|
|
|
65 |
return text_length
|
66 |
|
67 |
|
|
|
57 |
def preproc_count(filepath, skipfirst, skiplast):
|
58 |
input_text = file_preprocessing(filepath, skipfirst, skiplast)
|
59 |
text_length = len(input_text)
|
60 |
+
print("Preproc input word count:%s" %(text_length))
|
61 |
return input_text, text_length
|
62 |
|
63 |
|
64 |
def postproc_count(summary):
|
65 |
text_length = len(summary)
|
66 |
+
print("Postproc summary word count:%s" %(text_length))
|
67 |
return text_length
|
68 |
|
69 |
|