Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/joinseg.py
Original file line number Diff line number Diff line change
Expand Up @@ -592,7 +592,7 @@ def map_in_pool(fn, data, single_process=False, verbose=False):
print("Caught KeyboardInterrupt, terminating workers")
pool.terminate()
raise
else:
finally:
pool.close()
pool.join()

Expand Down
4 changes: 2 additions & 2 deletions src/pascalseg.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,8 +180,8 @@ def normalize_readable(name, collapse_adjectives):
# Long names for short part names that are unexplained in the file.
decoded_names = dict(
lfho='left front hoof',
rfho='right back hoof',
lbho='left front hoof',
rfho='right front hoof',
lbho='left back hoof',
rbho='right back hoof',
fwheel='front wheel',
bwheel='back wheel',
Expand Down
2 changes: 1 addition & 1 deletion src/synonym.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ def synonyms(words):
'aeroplane': ['airplane'],
'airplane': ['airplane', 'aeroplane', 'plane'],
'spectacles': ['eyeglasses'],
'windopane': ['window'], # ade20k calls windows windowpanes.
'windowpane': ['window'], # ade20k calls windows windowpanes.
'dog': ['dog', 'domestic dog', 'canis familiaris'],
'alga': ['algae'],
'bicycle': ['bicycle', 'bike', 'cycle'],
Expand Down