Update ppt_chunker.py
Browse files- 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}, {
|
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)
|