Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix typo in data set decoding and fix not joined processes in map_in_pool #16

Open
wants to merge 2 commits into
base: release1
Choose a base branch
from
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