{"action":"created","comment":{"url":"https://api.github.com/repos/nengo/nengo_gui/pulls/comments/42652417","id":42652417,"diff_hunk":"@@ -4,53 +4,67 @@\n # and the ability to make complex actions to implement a simple two-word\n # parsing system.  This model has a single visual input (vision) and you can\n # present to it two-word commands.  For example, you can say WRITE followed\n-# by B.  It will remember the two terms, store them, and then respond\n-# appropriately by sending B to its hand.  It can also SAY D, where the vector\n-# for D will be set to the speech system.\n+# by HI.  It will remember the two terms, store them, and then respond\n+# appropriately by sending HI to its hand.  It can also SAY BYE, where the\n+# vector for BYE will be set to the speech system.\n \n # The parsing process is implemented with the first two actions.  The first\n-# action looks for verbs (WRITE or SAY) and sends them into the memory system\n-# while binding them with VERB at the same time.  The second action looks for\n-# nouns (A or B or C or D or E) and sends them to the memory while binding\n-# them with NOUN.  Notice that the actions can looks for multiple different\n-# things at the same time by using the + operation.  Overall, this shows how\n-# we can use a single input modality (vision) and treat the information\n-# in different ways as appropriate.\n-#\n+# action looks for verbs (WRITE or SAY) and sends them into the memory for\n+# verbs. The second action looks for nouns (YES or NO or HI or BYE or OK) and\n+# sends them to the memory for nouns.  The noun stored in the noun memory binds\n+# with the semantic pointer NOUN and the verb stored in the verb memory binds\n+# with the semantic pointer VERB in the phrase state.  This binding is\n+# implemented with cortical actions. Notice that the actions can looks for\n+# multiple different things at the same time by using the + operation.\n+# Overall, this shows how we can use a single input modality (vision) and treat\n+# the information in different ways as appropriate.\n+\n # The last two actions deal with recognizing and executing actions.  The\n # first one looks for the VERB WRITE, and if it sees this it will take\n-# whatever is in memory, extract out the NOUN, and send that to the hand.\n+# whatever is in phrase, extract out the NOUN, and send that to the hand.\n # Furthermore, it will only do this if it doesn't currently see anything in\n # vision (via the subtraction).  This is to make sure it waits until it is\n # getting no more visual input before responding.\n \n-# To test the model, try presenting WRITE to the vision Buffer.  The memory\n-# should fill with WRITE*VERB.  Now change the vision input to B.  The memory\n-# should now fill with NOUN*B.  If you get rid of the visual input (by setting\n-# the value to nothing), it shuold sent B to the hand.  If you try the same\n+# To test the model, try presenting WRITE to the vision State.  The phrase\n+# should fill with WRITE*VERB.  Now change the vision input to HI.  The phrase\n+# should now fill with NOUN*HI.  If you get rid of the visual input (by setting\n+# the value to nothing), it shuold sent HI to the hand.  If you try the same\n # thing with SAY it should send the result to speech.\n \n import nengo\n import nengo.spa as spa\n \n-D = 32  # the dimensionality of the vectors\n+D = 64  # the dimensionality of the vectors","path":"nengo_gui/examples/tutorial/25-spa-parse.py","position":52,"original_position":52,"commit_id":"cf3dc13a4084e7bcf9361b65846dcc75e011bc38","original_commit_id":"cf3dc13a4084e7bcf9361b65846dcc75e011bc38","user":{"login":"tcstewar","id":2380772,"avatar_url":"https://avatars.githubusercontent.com/u/2380772?v=3","gravatar_id":"","url":"https://api.github.com/users/tcstewar","html_url":"https://github.com/tcstewar","followers_url":"https://api.github.com/users/tcstewar/followers","following_url":"https://api.github.com/users/tcstewar/following{/other_user}","gists_url":"https://api.github.com/users/tcstewar/gists{/gist_id}","starred_url":"https://api.github.com/users/tcstewar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tcstewar/subscriptions","organizations_url":"https://api.github.com/users/tcstewar/orgs","repos_url":"https://api.github.com/users/tcstewar/repos","events_url":"https://api.github.com/users/tcstewar/events{/privacy}","received_events_url":"https://api.github.com/users/tcstewar/received_events","type":"User","site_admin":false},"body":"If it's possible to get away with 32 dimensions, I'd prefer it, as then it'll work okay on slower computers....","created_at":"2015-10-21T17:10:25Z","updated_at":"2015-10-21T17:10:25Z","html_url":"https://github.com/nengo/nengo_gui/pull/588#discussion_r42652417","pull_request_url":"https://api.github.com/repos/nengo/nengo_gui/pulls/588","_links":{"self":{"href":"https://api.github.com/repos/nengo/nengo_gui/pulls/comments/42652417"},"html":{"href":"https://github.com/nengo/nengo_gui/pull/588#discussion_r42652417"},"pull_request":{"href":"https://api.github.com/repos/nengo/nengo_gui/pulls/588"}}},"pull_request":{"url":"https://api.github.com/repos/nengo/nengo_gui/pulls/588","id":48262874,"html_url":"https://github.com/nengo/nengo_gui/pull/588","diff_url":"https://github.com/nengo/nengo_gui/pull/588.diff","patch_url":"https://github.com/nengo/nengo_gui/pull/588.patch","issue_url":"https://api.github.com/repos/nengo/nengo_gui/issues/588","number":588,"state":"open","locked":false,"title":"Update in tutorials: Renamed Memory and Buffer to State","user":{"login":"ikajic","id":2485670,"avatar_url":"https://avatars.githubusercontent.com/u/2485670?v=3","gravatar_id":"","url":"https://api.github.com/users/ikajic","html_url":"https://github.com/ikajic","followers_url":"https://api.github.com/users/ikajic/followers","following_url":"https://api.github.com/users/ikajic/following{/other_user}","gists_url":"https://api.github.com/users/ikajic/gists{/gist_id}","starred_url":"https://api.github.com/users/ikajic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ikajic/subscriptions","organizations_url":"https://api.github.com/users/ikajic/orgs","repos_url":"https://api.github.com/users/ikajic/repos","events_url":"https://api.github.com/users/ikajic/events{/privacy}","received_events_url":"https://api.github.com/users/ikajic/received_events","type":"User","site_admin":false},"body":"I've replaced all occurrences `spa.Buffer` and `spa.Memory` with `spa.State`, including some other minor changes to the code, docstrings and fixed typos. Also, the last example `25-spa-parse.py` is now very similar to the second example in the SPA tutorial (still it's not the same). @tcstewar could you take a look at this? Thanks!\r\n","created_at":"2015-10-20T21:50:28Z","updated_at":"2015-10-21T17:10:25Z","closed_at":null,"merged_at":null,"merge_commit_sha":"7fced5406fffb44eedb68425e7e5e496bc1dac08","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/nengo/nengo_gui/pulls/588/commits","review_comments_url":"https://api.github.com/repos/nengo/nengo_gui/pulls/588/comments","review_comment_url":"https://api.github.com/repos/nengo/nengo_gui/pulls/comments{/number}","comments_url":"https://api.github.com/repos/nengo/nengo_gui/issues/588/comments","statuses_url":"https://api.github.com/repos/nengo/nengo_gui/statuses/cf3dc13a4084e7bcf9361b65846dcc75e011bc38","head":{"label":"nengo:rename-membuf-state","ref":"rename-membuf-state","sha":"cf3dc13a4084e7bcf9361b65846dcc75e011bc38","user":{"login":"nengo","id":9197486,"avatar_url":"https://avatars.githubusercontent.com/u/9197486?v=3","gravatar_id":"","url":"https://api.github.com/users/nengo","html_url":"https://github.com/nengo","followers_url":"https://api.github.com/users/nengo/followers","following_url":"https://api.github.com/users/nengo/following{/other_user}","gists_url":"https://api.github.com/users/nengo/gists{/gist_id}","starred_url":"https://api.github.com/users/nengo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nengo/subscriptions","organizations_url":"https://api.github.com/users/nengo/orgs","repos_url":"https://api.github.com/users/nengo/repos","events_url":"https://api.github.com/users/nengo/events{/privacy}","received_events_url":"https://api.github.com/users/nengo/received_events","type":"Organization","site_admin":false},"repo":{"id":28949681,"name":"nengo_gui","full_name":"nengo/nengo_gui","owner":{"login":"nengo","id":9197486,"avatar_url":"https://avatars.githubusercontent.com/u/9197486?v=3","gravatar_id":"","url":"https://api.github.com/users/nengo","html_url":"https://github.com/nengo","followers_url":"https://api.github.com/users/nengo/followers","following_url":"https://api.github.com/users/nengo/following{/other_user}","gists_url":"https://api.github.com/users/nengo/gists{/gist_id}","starred_url":"https://api.github.com/users/nengo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nengo/subscriptions","organizations_url":"https://api.github.com/users/nengo/orgs","repos_url":"https://api.github.com/users/nengo/repos","events_url":"https://api.github.com/users/nengo/events{/privacy}","received_events_url":"https://api.github.com/users/nengo/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/nengo/nengo_gui","description":"Nengo interactive visualizer","fork":false,"url":"https://api.github.com/repos/nengo/nengo_gui","forks_url":"https://api.github.com/repos/nengo/nengo_gui/forks","keys_url":"https://api.github.com/repos/nengo/nengo_gui/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nengo/nengo_gui/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nengo/nengo_gui/teams","hooks_url":"https://api.github.com/repos/nengo/nengo_gui/hooks","issue_events_url":"https://api.github.com/repos/nengo/nengo_gui/issues/events{/number}","events_url":"https://api.github.com/repos/nengo/nengo_gui/events","assignees_url":"https://api.github.com/repos/nengo/nengo_gui/assignees{/user}","branches_url":"https://api.github.com/repos/nengo/nengo_gui/branches{/branch}","tags_url":"https://api.github.com/repos/nengo/nengo_gui/tags","blobs_url":"https://api.github.com/repos/nengo/nengo_gui/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nengo/nengo_gui/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nengo/nengo_gui/git/refs{/sha}","trees_url":"https://api.github.com/repos/nengo/nengo_gui/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nengo/nengo_gui/statuses/{sha}","languages_url":"https://api.github.com/repos/nengo/nengo_gui/languages","stargazers_url":"https://api.github.com/repos/nengo/nengo_gui/stargazers","contributors_url":"https://api.github.com/repos/nengo/nengo_gui/contributors","subscribers_url":"https://api.github.com/repos/nengo/nengo_gui/subscribers","subscription_url":"https://api.github.com/repos/nengo/nengo_gui/subscription","commits_url":"https://api.github.com/repos/nengo/nengo_gui/commits{/sha}","git_commits_url":"https://api.github.com/repos/nengo/nengo_gui/git/commits{/sha}","comments_url":"https://api.github.com/repos/nengo/nengo_gui/comments{/number}","issue_comment_url":"https://api.github.com/repos/nengo/nengo_gui/issues/comments{/number}","contents_url":"https://api.github.com/repos/nengo/nengo_gui/contents/{+path}","compare_url":"https://api.github.com/repos/nengo/nengo_gui/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nengo/nengo_gui/merges","archive_url":"https://api.github.com/repos/nengo/nengo_gui/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nengo/nengo_gui/downloads","issues_url":"https://api.github.com/repos/nengo/nengo_gui/issues{/number}","pulls_url":"https://api.github.com/repos/nengo/nengo_gui/pulls{/number}","milestones_url":"https://api.github.com/repos/nengo/nengo_gui/milestones{/number}","notifications_url":"https://api.github.com/repos/nengo/nengo_gui/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nengo/nengo_gui/labels{/name}","releases_url":"https://api.github.com/repos/nengo/nengo_gui/releases{/id}","created_at":"2015-01-08T05:00:06Z","updated_at":"2015-10-10T05:21:46Z","pushed_at":"2015-10-21T16:15:19Z","git_url":"git://github.com/nengo/nengo_gui.git","ssh_url":"git@github.com:nengo/nengo_gui.git","clone_url":"https://github.com/nengo/nengo_gui.git","svn_url":"https://github.com/nengo/nengo_gui","homepage":"","size":9196,"stargazers_count":9,"watchers_count":9,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"open_issues_count":174,"forks":4,"open_issues":174,"watchers":9,"default_branch":"master"}},"base":{"label":"nengo:master","ref":"master","sha":"ae2aa2048ffd1b0e15a63c1c2cca295f53a66eb5","user":{"login":"nengo","id":9197486,"avatar_url":"https://avatars.githubusercontent.com/u/9197486?v=3","gravatar_id":"","url":"https://api.github.com/users/nengo","html_url":"https://github.com/nengo","followers_url":"https://api.github.com/users/nengo/followers","following_url":"https://api.github.com/users/nengo/following{/other_user}","gists_url":"https://api.github.com/users/nengo/gists{/gist_id}","starred_url":"https://api.github.com/users/nengo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nengo/subscriptions","organizations_url":"https://api.github.com/users/nengo/orgs","repos_url":"https://api.github.com/users/nengo/repos","events_url":"https://api.github.com/users/nengo/events{/privacy}","received_events_url":"https://api.github.com/users/nengo/received_events","type":"Organization","site_admin":false},"repo":{"id":28949681,"name":"nengo_gui","full_name":"nengo/nengo_gui","owner":{"login":"nengo","id":9197486,"avatar_url":"https://avatars.githubusercontent.com/u/9197486?v=3","gravatar_id":"","url":"https://api.github.com/users/nengo","html_url":"https://github.com/nengo","followers_url":"https://api.github.com/users/nengo/followers","following_url":"https://api.github.com/users/nengo/following{/other_user}","gists_url":"https://api.github.com/users/nengo/gists{/gist_id}","starred_url":"https://api.github.com/users/nengo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nengo/subscriptions","organizations_url":"https://api.github.com/users/nengo/orgs","repos_url":"https://api.github.com/users/nengo/repos","events_url":"https://api.github.com/users/nengo/events{/privacy}","received_events_url":"https://api.github.com/users/nengo/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/nengo/nengo_gui","description":"Nengo interactive visualizer","fork":false,"url":"https://api.github.com/repos/nengo/nengo_gui","forks_url":"https://api.github.com/repos/nengo/nengo_gui/forks","keys_url":"https://api.github.com/repos/nengo/nengo_gui/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nengo/nengo_gui/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nengo/nengo_gui/teams","hooks_url":"https://api.github.com/repos/nengo/nengo_gui/hooks","issue_events_url":"https://api.github.com/repos/nengo/nengo_gui/issues/events{/number}","events_url":"https://api.github.com/repos/nengo/nengo_gui/events","assignees_url":"https://api.github.com/repos/nengo/nengo_gui/assignees{/user}","branches_url":"https://api.github.com/repos/nengo/nengo_gui/branches{/branch}","tags_url":"https://api.github.com/repos/nengo/nengo_gui/tags","blobs_url":"https://api.github.com/repos/nengo/nengo_gui/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nengo/nengo_gui/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nengo/nengo_gui/git/refs{/sha}","trees_url":"https://api.github.com/repos/nengo/nengo_gui/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nengo/nengo_gui/statuses/{sha}","languages_url":"https://api.github.com/repos/nengo/nengo_gui/languages","stargazers_url":"https://api.github.com/repos/nengo/nengo_gui/stargazers","contributors_url":"https://api.github.com/repos/nengo/nengo_gui/contributors","subscribers_url":"https://api.github.com/repos/nengo/nengo_gui/subscribers","subscription_url":"https://api.github.com/repos/nengo/nengo_gui/subscription","commits_url":"https://api.github.com/repos/nengo/nengo_gui/commits{/sha}","git_commits_url":"https://api.github.com/repos/nengo/nengo_gui/git/commits{/sha}","comments_url":"https://api.github.com/repos/nengo/nengo_gui/comments{/number}","issue_comment_url":"https://api.github.com/repos/nengo/nengo_gui/issues/comments{/number}","contents_url":"https://api.github.com/repos/nengo/nengo_gui/contents/{+path}","compare_url":"https://api.github.com/repos/nengo/nengo_gui/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nengo/nengo_gui/merges","archive_url":"https://api.github.com/repos/nengo/nengo_gui/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nengo/nengo_gui/downloads","issues_url":"https://api.github.com/repos/nengo/nengo_gui/issues{/number}","pulls_url":"https://api.github.com/repos/nengo/nengo_gui/pulls{/number}","milestones_url":"https://api.github.com/repos/nengo/nengo_gui/milestones{/number}","notifications_url":"https://api.github.com/repos/nengo/nengo_gui/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nengo/nengo_gui/labels{/name}","releases_url":"https://api.github.com/repos/nengo/nengo_gui/releases{/id}","created_at":"2015-01-08T05:00:06Z","updated_at":"2015-10-10T05:21:46Z","pushed_at":"2015-10-21T16:15:19Z","git_url":"git://github.com/nengo/nengo_gui.git","ssh_url":"git@github.com:nengo/nengo_gui.git","clone_url":"https://github.com/nengo/nengo_gui.git","svn_url":"https://github.com/nengo/nengo_gui","homepage":"","size":9196,"stargazers_count":9,"watchers_count":9,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"open_issues_count":174,"forks":4,"open_issues":174,"watchers":9,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/nengo/nengo_gui/pulls/588"},"html":{"href":"https://github.com/nengo/nengo_gui/pull/588"},"issue":{"href":"https://api.github.com/repos/nengo/nengo_gui/issues/588"},"comments":{"href":"https://api.github.com/repos/nengo/nengo_gui/issues/588/comments"},"review_comments":{"href":"https://api.github.com/repos/nengo/nengo_gui/pulls/588/comments"},"review_comment":{"href":"https://api.github.com/repos/nengo/nengo_gui/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/nengo/nengo_gui/pulls/588/commits"},"statuses":{"href":"https://api.github.com/repos/nengo/nengo_gui/statuses/cf3dc13a4084e7bcf9361b65846dcc75e011bc38"}}}}