Hi,
I'm now trying out "new" pattern miner.
"Simple" example seems to work (I guess, or not?):
$ guile -l simple.scm
GNU Guile 2.2.4
Copyright (C) 1995-2017 Free Software Foundation, Inc.
Guile comes with ABSOLUTELY NO WARRANTY; for details type `,show w'.
This program is free software, and you are welcome to redistribute it
under certain conditions; type `,show c' for details.
Enter `,help' for help.
scheme@(guile-user)> (cog-mine (cog-atomspace) #minsup 2)
$1 = (SetLink
(LambdaLink
(VariableList
(VariableNode "$PM-4c2b3a57")
(VariableNode "$PM-e84bdd8")
)
(InheritanceLink
(VariableNode "$PM-4c2b3a57")
(VariableNode "$PM-e84bdd8")
)
)
(LambdaLink
(VariableNode "$PM-e84bdd8")
(InheritanceLink
(ConceptNode "A")
(VariableNode "$PM-e84bdd8")
)
)
(LambdaLink
(VariableList
(VariableNode "$PM-51de97f")
(VariableNode "$PM-a083600")
)
(VariableList
(VariableNode "$PM-51de97f")
(VariableNode "$PM-a083600")
)
)
(LambdaLink
(VariableNode "$top-arg")
(VariableNode "$top-arg")
)
)
However, "ugly-male-soda-drinker" example fails. It gives the following:
Backtrace:
5 (apply-smob/1 #<catch-closure 5654470958c0>)
In ice-9/boot-9.scm:
705:2 4 (call-with-prompt _ _ #<procedure default-prompt-handle…>)
In ice-9/eval.scm:
619:8 3 (_ #(#(#<directory (guile-user) 56544712a140>)))
In ice-9/boot-9.scm:
2312:4 2 (save-module-excursion _)
3831:12 1 (_)
In unknown file:
0 (_)
ERROR: Wrong type to apply: (SetLink
(LambdaLink
(VariableList
(VariableNode "$PM-793e6063")
(VariableNode "$PM-762382f3")
)
(AndLink
(InheritanceLink
(VariableNode "$PM-793e6063")
(VariableNode "$PM-762382f3")
)
(InheritanceLink
(VariableNode "$PM-793e6063")
(ConceptNode "ugly")
)
(InheritanceLink
(ConceptNode "Cason")
(VariableNode "$PM-762382f3")
)
)
)
...
(data dump continues)
I'm not sure this is a bug or my build/configuration problem (or expected behavior). Could you give me hints?
Best regards,
MH