Skip to content

Commit

Permalink
fix logging grobid title #15
Browse files Browse the repository at this point in the history
  • Loading branch information
stevenlujpl committed Jul 7, 2021
1 parent cef2dcb commit e7d8a79
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/parserindexer/lpsc_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,10 @@ def process(in_file, in_list, out_file, log_file, tika_server_url,
logger.info('Processing %s' % os.path.basename(f))
try:
ads_dict = ads_parser.parse(f)
logger.info('Document title: %s' %
ads_dict['metadata']['grobid:header_Title'])

if 'grobid:header_Title' in ads_dict['metadata'].keys():
logger.info('Document title: %s' %
ads_dict['metadata']['grobid:header_Title'])
lpsc_dict = lpsc_parser.parse(ads_dict['content'],
ads_dict['metadata'])
jsre_dict = jsre_parser.parse(lpsc_dict['cleaned_content'])
Expand Down

0 comments on commit e7d8a79

Please sign in to comment.