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

convert Haystack JSON model #56

Closed
jli113 opened this issue Jul 12, 2021 · 1 comment
Closed

convert Haystack JSON model #56

jli113 opened this issue Jul 12, 2021 · 1 comment

Comments

@jli113
Copy link

jli113 commented Jul 12, 2021

After downloading bravo.json, running the following lines:

import json
from brickschema import Graph
model = json.load(open("bravo.json"))
g = Graph(load_brick=True).from_haystack("http://project-haystack.org/bravo#", model)

File "C:\Users*\anaconda3\envs\Brick\lib\site-packages\brickschema\inference.py", line 711, in
entities = {e["id"].replace('"', ""): {"tags": e} for e in entities}

AttributeError: 'dict' object has no attribute 'replace'

@gtfierro
Copy link
Member

Closing due to duplicate of #57 ; I'll respond there

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

No branches or pull requests

2 participants