Skip to content

Commit

Permalink
remove useless codes
Browse files Browse the repository at this point in the history
  • Loading branch information
carpedm20 committed Feb 10, 2016
1 parent 7946249 commit d679a16
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 19 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ To test an existing model:

$ python main.py --dataset duc2014 --forward_only True

(This is still in progress and stucked by having no access to all of summarization datasets..)
(This is still in progress and currently have no access to summarization dataset)


References
Expand Down
18 changes: 0 additions & 18 deletions utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,21 +7,3 @@
xrange = range

pp = pprint.PrettyPrinter()

def progress(progress, status=""):
barLength = 20
if isinstance(progress, int):
progress = float(progress)
if not isinstance(progress, float):
progress = 0
status = "error: progress var must be float\r\n"
if progress < 0:
progress = 0
status = "Halt...\r\n"
if progress >= 1:
progress = 1
status = "Finished.\r\n"
block = int(round(barLength*progress))
text = "\rPercent: [%s] %.2f%% | %s" % ("#"*block + " "*(barLength-block), progress*100, status)
sys.stdout.write(text)
sys.stdout.flush()

0 comments on commit d679a16

Please sign in to comment.