Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix broken inferlink example #431

Open
wants to merge 6 commits into
base: development
Choose a base branch
from

Conversation

donaq
Copy link

@donaq donaq commented Nov 18, 2021

trying to run python inferlink_example.py gives the following error:

Traceback (most recent call last):
  File "inferlink_example.py", line 35, in <module>
    docs = etk.process_ems(doc)
  File "/home/donaq/progs/etk/etk/etk.py", line 168, in process_ems
    if self.kg_schema.legacy:
AttributeError: 'NoneType' object has no attribute 'legacy'

This is because the call to ETK() in the example code does not provide a value for the kg_schema argument, which defaults to None. Since that is a possible value for kg_schema, process_ems should check for it.

@saggu
Copy link
Member

saggu commented Nov 18, 2021

@donaq please change the target branch to development

@donaq donaq changed the base branch from master to development November 19, 2021 01:15
@donaq
Copy link
Author

donaq commented Nov 19, 2021

@saggu Ok sure. It's done.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants