I implemented a ID3-algorithm in Prolog.
I have following attributes:
genre: action, komödie, thriller, comic
actor: snips, willis, carrey
dtt: dvd, vhs
zustellung: normal, express
If I use my ID3-algorithm I will get the following result:
tree(internal(action), [komödie-tree(internal(dvd)...
Hello!
Good idea! I had nearly the same idea, but than I get a problem! The first part is clear, but how can I return the char-list between the first and the second space-sign? Perhaps it's easy, but I don't know if it will be possible to save variables in Prolog!!!
Thx for your help!
Have you ever tried to realize the "splitting-problem" in SWI-Prolog? I tried your tip, but this version of prolog doesn't have the predicate "string_split"!!
In every other programming-language I would search the "space-signs" in the string and copy the parts...
How can I split a string?
For example:
'123 abc 456'
And now I want to split this string at the SPACE-Signs into 3 strings and save them in 3 different variables!
Thanks!
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.