[ACT-R-users] Question regarding define_chunks with python interface
Arun Krishna
arunbkris at gmail.com
Wed Mar 3 10:36:53 EST 2021
Hi,
Now I am able to successfully define the chunk, with python interfaces with
the following code
def defineContextChunk(self, trigger):
actr.define_chunks(["chunk name", "isa", "navigation",
"navigationStart", "state-1"])
Now I learned that internally the python interfaces also make use of the
"evaluate" method.
Sorry for the inconvenience. Thank you very much for the support.
Regards,
Arun
On Wed, Mar 3, 2021 at 8:00 AM Arun Krishna <arunbkris at gmail.com> wrote:
> Hi,
>
> Good day.
>
> Could you please help me for using the python interface defined in
> actr.py, for defining a new chunk.
>
> I have a chunk type shown below
> "(chunk-type navigation navigationStart navigationEnd navigationCurrent
> navigationTrigger)"
>
> With RPC I am able to define a chunk of type "navigation" successfully
> using the "evaluate" method.
> With python interface ( ACT-R\tutorial\python) I am learning how to use
> "actr.define_chunks"
>
> I found an example in ACT-R\tutorial\python\onehit.py, as well as in
> ACT-R\tutorial\python\categorize.py tried to follow the same pattern but
> no success yet.
>
> Could you please provide me an example.
>
> Thanks & Regards,
> Arun
>
>
>
>
>
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.srv.cs.cmu.edu/pipermail/act-r-users/attachments/20210303/17856229/attachment.html>
More information about the ACT-R-users
mailing list