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

Syntax error when trying to run transcrip #1

Open
Eartzhakharov opened this issue May 17, 2023 · 2 comments
Open

Syntax error when trying to run transcrip #1

Eartzhakharov opened this issue May 17, 2023 · 2 comments

Comments

@Eartzhakharov
Copy link
Contributor

Eartzhakharov commented May 17, 2023

When I try to run the rule

(Predicate "#$termOfUnit" (Concept "#<") 
((Concept "#$GraduateFn") (Concept "#$DentalSchool"))
 (Concept ">") ((Concept "#$GraduateFn") 
(Concept "#$DentalSchool")))

in guile, I get following error:

Wrong type to apply: (ConceptNode "#$GraduateFn")
@Eartzhakharov Eartzhakharov changed the title Syntax error when trying to run trnscrip Syntax error when trying to run transcrip May 17, 2023
@Eartzhakharov
Copy link
Contributor Author

Eartzhakharov commented May 17, 2023

The rule has been transcripted with cycl-opencog-0-1.py
One should get similar results by running it with one of the testset files....

@linas
Copy link
Member

linas commented May 17, 2023

You have placed parenthesis incorrectly. Try this:

(Predicate "#$termOfUnit")
(Concept "#<") 
(Concept "#$GraduateFn")
(Concept "#$DentalSchool") 
(Concept ">")
(Concept "#$GraduateFn") 
(Concept "#$DentalSchool")

So, Predicate can only take a single string argument.

To create scheme lists, you must use scheme list

To create AtomSpace lists, you must use Link (e.g. InheritanceLink)

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