emanuelaboros commited on
Commit
198304b
·
1 Parent(s): 20284f5

add comp back

Browse files
Files changed (1) hide show
  1. generic_ner.py +2 -0
generic_ner.py CHANGED
@@ -272,6 +272,8 @@ def extract_name_from_text(text, partial_name):
272
  # Find the position of the partial name in the text
273
  name_start_idx = text.find(partial_name)
274
 
 
 
275
  if name_start_idx != -1:
276
  # Split the text into words
277
  words = text.split()
 
272
  # Find the position of the partial name in the text
273
  name_start_idx = text.find(partial_name)
274
 
275
+ print("textsss", text[:name_start_idx])
276
+
277
  if name_start_idx != -1:
278
  # Split the text into words
279
  words = text.split()