petermr / openDiagram

Extaction of semantic data from diagrams in scientific and other technical/business documents
Apache License 2.0
1 stars 5 forks source link

Not getting the result of some sections such as `Results` and `discussion` while running `ami_gui.py` #21

Open Radhu903 opened 3 years ago

Radhu903 commented 3 years ago
C:\Users\DELL\openDiagram\physchem\python>python ami_gui.py
project files not available for  C:\Users\DELL\openDiagram\python\diagrams\satish\cct
project files not available for  C:\Users\DELL\openVirus\miniproject\disease\1-part
project files not available for  C:\Users\DELL\worcester\synthesis
project files not available for  C:\Users\DELL\worcester\explosion
cannot load html file
project files not available for  C:\Users\DELL\openDiagram\python\diagrams\satish\cct
project files not available for  C:\Users\DELL\openVirus\miniproject\disease\1-part
project files not available for  C:\Users\DELL\worcester\synthesis
project files not available for  C:\Users\DELL\worcester\explosion
sections ['ACKNOW', 'WORD']
dictionaries ['activity']
dict_name: activity
projects ['activity']
projects ['activity']
***** project C:\Users\DELL\CEVOpen\minicorpora\activity
key acknow
Exception in Tkinter callback
Traceback (most recent call last):
  File "C:\Users\DELL\AppData\Local\Programs\Python\Python39\lib\tkinter\__init__.py", line 1892, in __call__
    return self.func(*args)
  File "C:\Users\DELL\openDiagram\physchem\python\ami_gui.py", line 509, in run_ami_search
    ami_search.run_search_from_gui(ami_guix)
  File "C:\Users\DELL\openDiagram\physchem\python\search_lib.py", line 521, in run_search_from_gui
    self.run_search()
  File "C:\Users\DELL\openDiagram\physchem\python\search_lib.py", line 357, in run_search
    self.glob_for_section_files(proj, section_type)
  File "C:\Users\DELL\openDiagram\physchem\python\search_lib.py", line 388, in glob_for_section_files
    templates = AmiPath.create_ami_path_from_templates(section_type, {PROJ: proj.dir})
  File "C:\Users\DELL\openDiagram\physchem\python\file_lib.py", line 103, in create_ami_path_from_templates
    raise Exception("no scheme for: ", key, "expected", TEMPLATES.keys())
Exception: ('no scheme for: ', 'acknow', 'expected', dict_keys(['abstract', 'acknowledge', 'affiliation', 'author', 'ethics', 'fig_caption', 'front', 'introduction', 'jrnl_title', 'keyword', 'method', 'octree', 'pdfimage', 'pub_date', 'publisher', 'reference', 'results_discuss', 'results', 'sections', 'svg', 'table', 'title']
petermr commented 3 years ago

Some of the section names need mending.

Radhu903 commented 3 years ago

@petermr do we need to change the labeling of the sections to get the graph for that particular section

petermr commented 3 years ago

The python dicts need changing. I'll have a look today. No promises. Do not rely on this.

Radhu903 commented 3 years ago

Okay @petermr

petermr commented 3 years ago

This is currently my top priority...

On Sat, Jun 12, 2021 at 1:06 PM Radhu Ladani @.***> wrote:

Okay @petermr https://github.com/petermr

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/petermr/openDiagram/issues/21#issuecomment-860044446, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAFTCS3VCIOAAGXLG2PGR2DTSNES7ANCNFSM46SUHVWQ .

-- Peter Murray-Rust Founder ContentMine.org and Reader Emeritus in Molecular Informatics Dept. Of Chemistry, University of Cambridge, CB2 1EW, UK