You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm running tilde on my own data, I got a weird bug in which I cannot specify what's exactly the problem; here we are:
Traceback (most recent call last):
File "devmain.py", line 10, in <module>
main()
File "devmain.py", line 6, in main
real_main.main(argv)
File "/Users/sarawasl/Documents/tilde/mai_version/main.py", line 157, in main
run_program(program_settings)
File "/Users/sarawasl/Documents/tilde/mai_version/main.py", line 133, in run_program
fname_background_knowledge, filter_out_unlabeled_examples=False)
File "/Users/sarawasl/Documents/tilde/mai_version/run/program_phase.py", line 37, in preprocessing_examples_keys
prediction_goal) # type: BackgroundKnowledgeWrapper
File "/Users/sarawasl/Documents/tilde/mai_version/IO/parsing_background_knowledge.py", line 66, in parse_background_knowledge_keys
for prolog_statement in logic_program:
File "/anaconda3/lib/python3.7/site-packages/problog/program.py", line 249, in __iter__
return iter(self._program())
File "/anaconda3/lib/python3.7/site-packages/problog/program.py", line 234, in _program
self.__program = self.parser.parseString(self.__string)
File "/anaconda3/lib/python3.7/site-packages/problog/parser.py", line 765, in parseString
self._tokenize(string))))
File "/anaconda3/lib/python3.7/site-packages/problog/parser.py", line 829, in mapl
return list(map(f, l))
File "/anaconda3/lib/python3.7/site-packages/problog/parser.py", line 763, in <lambda>
return self.factory.build_program(mapl(lambda x: self._parse_statement(string, x),
File "/anaconda3/lib/python3.7/site-packages/problog/parser.py", line 760, in _parse_statement
return self.collapse(string, tokens)
File "/anaconda3/lib/python3.7/site-packages/problog/parser.py", line 795, in collapse
current_expr.parse(self)
File "/anaconda3/lib/python3.7/site-packages/problog/parser.py", line 866, in parse
self.label_tokens(parser)
File "/anaconda3/lib/python3.7/site-packages/problog/parser.py", line 883, in label_tokens
parser.label_tokens(self.string, self.tokens)
File "/anaconda3/lib/python3.7/site-packages/problog/parser.py", line 735, in label_tokens
raise ParseError(string, 'Expected binary operator', t.location)
problog.parser.ParseError: Expected binary operator at 5439:20.
As I understand, it seems that something wrong in my .bg file and prolog not able to parse it (I think so)
Hi Jonas,
Thanks for sharing your nice work.
I'm running tilde on my own data, I got a weird bug in which I cannot specify what's exactly the problem; here we are:
As I understand, it seems that something wrong in my .bg file and prolog not able to parse it (I think so)
My .bg file contains something like:
Could you please help me with that?
The text was updated successfully, but these errors were encountered: