Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

PROLOG extracting words from string and putting them into List

18 views
Skip to first unread message

Duli998

unread,
Apr 8, 2016, 6:05:50 PM4/8/16
to SWI-Prolog

I'm new to Prolog and I can't really think of any ways of dealing with this problem, basically i have a sentence for example:


phrase(det(a),np2(adj(large))).


From the sentence above I want to be able to extract in this case determiner (a) and adjective (large) and put them into a list so it looks like:


newList[a,large].


Thank you for your help :)

Reply all
Reply to author
Forward
0 new messages