-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Labels
invalidThis doesn't seem rightThis doesn't seem right
Description
Hi
Running SLTev sometimes takes excessively long to evaluate (about 10 minutes). An example is available at http://www.statmt.org/bhaddow/SLTev-slow-mwe/
I run with:
SLTeval -i ende.teacher.k0.en-de.en.txt.slt en-de.de.txt en-de.en.txt.OStt -f slt ref ostt
Profiling the code, I see that it spends most of its time here:
Line 154 in 2d56dd0
| def extract_match_tokens_based_on_time(estimat_times, display_times, start, end): |
I do not know the code well enough to know what the problem is, but (eg) the two loops could be combined, and the iteration should use for x in list rather than range()
best
Barry
Metadata
Metadata
Assignees
Labels
invalidThis doesn't seem rightThis doesn't seem right