Skip to content

Commit

Permalink
Merge branch 'main' into verb-hierarchy-2024
Browse files Browse the repository at this point in the history
  • Loading branch information
jmccrae committed Oct 11, 2024
2 parents 618104c + 1fbd3c1 commit f4bf54a
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions scripts/sense_keys.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,9 +121,11 @@ def get_head_word(wn, s):
def get_sense_key(wn, e, s):
"""Calculate the sense key for a sense of an entry"""
ss = wn.synset_by_id(s.synset)
lemma = e.lemma.written_form.replace(
" ", "_").replace(
"&apos", "'").lower()
lemma = (e.lemma.written_form
.replace(" ", "_")
.replace("&apos", "'")
.replace(":", "-cn-")
.lower())
ss_type = ss_types[ss.part_of_speech]
lex_filenum = lex_filenums[ss.lex_name]
if s.id:
Expand Down

0 comments on commit f4bf54a

Please sign in to comment.