thak123 commited on
Commit
47f01ff
·
1 Parent(s): f0176cc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -20,7 +20,8 @@ def get_english_synset_id(croatian_word):
20
  # Check if any synsets were found
21
  if synsets:
22
  # Take the first synset (you can modify this to handle multiple synsets if needed)
23
- english_synset_id = synsets[0].name()
 
24
  return english_synset_id
25
  else:
26
  return None
 
20
  # Check if any synsets were found
21
  if synsets:
22
  # Take the first synset (you can modify this to handle multiple synsets if needed)
23
+ hrv_synset = synsets[0]
24
+ english_synset_id wordnet.synset_from_pos_and_offset("n", hrv_synset.offset())
25
  return english_synset_id
26
  else:
27
  return None