So I could not run quepy from command prompt for windows but I tried calling get_code() from within generation.py (again on Windows)
get_code("Who is Tom Cruise?","sparql")
and tried to execute generation.py() but get the following error
File "C:\Anaconda3\lib\site-packages\quepy\sparql_generation.py", line 45, in expression_to_sparql
head = adapt(e.get_head())
AttributeError: 'str' object has no attribute 'get_head'
and for dot and mql I get this error..
File "C:\Anaconda3\lib\site-packages\quepy\dot_generation.py", line 47, in expression_to_dot
for node in e.iter_nodes():
AttributeError: 'str' object has no attribute 'iter_nodes'
so guess the question is not to be passed in as a str, how should the question be passed in please.
Any ideas ?
Thanks !