-
Notifications
You must be signed in to change notification settings - Fork 54
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
Questions about Atomspace with Python #781
Comments
Hello @nworb999 ,
If you are running you MeTTa program from Python code using
hyperon-experimental/python/hyperon/base.py Line 229 in 1507f82
hyperon-experimental/python/hyperon/base.py Line 248 in 1507f82
Am I right that these atoms are generated by your MeTTa program? In general they can be filtered out by specifying query to
It is possible doing this in Python by converting atom to string and check if the string contains some substring. But it is not poss in MeTTa program without writing additional MeTTa functions for doing these things. |
Thank you so much! |
Hello,
I am using the
hyperon
package for my Python application and I was wondering about some best practices for outputting the AtomSpace to a text file. Right now, I am usingmetta.run("!(get-atoms &self)")
to visually check that things I am adding are being represented correctly. I was wondering:(= True True), (= True True), (= True True),
-- is there a way to automatically filter that out? And only include atoms that have information like(Is Hat_Hat2279 Hat), (entity Hat_Hat2280), (Is Hat_Hat2280 Hat)
?Necklace
, without having to specify(fact $query ($rest))/(fact Necklace (is Brown))
or(entity $query)/(entity Necklace)
?Thank you for your work!
The text was updated successfully, but these errors were encountered: