Extracting abstract, introduction using Python tika

Viewed 12

I am trying to extract the abstract and other sections of the paper, then the paper's reference. The code I am using is

from tika import parser 
import re
raw = parser.from_file('efn39.pdf')
content=raw['content'].lower().strip()
content_1=content.split("abstract",1)[1]
print(content_1[:content_1.find('introduction')])

content.split("references",1)[1]

With this code, I can extract the abstract and the references, but the approach used for the abstract is not standard, and the references list is in the string, and I want to store the references in the list.

How can we do it?

0 Answers
Related