devve1 commited on
Commit
4c5cae6
1 Parent(s): 18d9aa8

Update ppt_chunker.py

Browse files
Files changed (1) hide show
  1. ppt_chunker.py +1 -1
ppt_chunker.py CHANGED
@@ -23,7 +23,7 @@ def process_chunk(chunk, nlp):
23
  continue
24
 
25
  if (type(next) is list) and next[1].isupper() and (next[0] == 'Title'):
26
- print(f'TOKEN: {current_text}, {token[-1].pos_}')
27
  if tokens[-1].pos_ in ["ADP", 'PART', 'PRON', 'DET', "AUX", 'SCONJ', 'CONJ', "CCONJ"]:
28
  chunk[1][i+1][1] = current_text + ' ' + next[1]
29
  marked.append(i)
 
23
  continue
24
 
25
  if (type(next) is list) and next[1].isupper() and (next[0] == 'Title'):
26
+ print(f'TOKEN: {current_text}, {tokens[-1].pos_}')
27
  if tokens[-1].pos_ in ["ADP", 'PART', 'PRON', 'DET', "AUX", 'SCONJ', 'CONJ', "CCONJ"]:
28
  chunk[1][i+1][1] = current_text + ' ' + next[1]
29
  marked.append(i)