{"action":"created","issue":{"url":"https://api.github.com/repos/percyliang/sempre/issues/114","repository_url":"https://api.github.com/repos/percyliang/sempre","labels_url":"https://api.github.com/repos/percyliang/sempre/issues/114/labels{/name}","comments_url":"https://api.github.com/repos/percyliang/sempre/issues/114/comments","events_url":"https://api.github.com/repos/percyliang/sempre/issues/114/events","html_url":"https://github.com/percyliang/sempre/issues/114","id":181080351,"number":114,"title":"Tutorial example of \"cities in california\" does not work.","user":{"login":"LukeButtersFunnelback","id":7076477,"avatar_url":"https://avatars.githubusercontent.com/u/7076477?v=3","gravatar_id":"","url":"https://api.github.com/users/LukeButtersFunnelback","html_url":"https://github.com/LukeButtersFunnelback","followers_url":"https://api.github.com/users/LukeButtersFunnelback/followers","following_url":"https://api.github.com/users/LukeButtersFunnelback/following{/other_user}","gists_url":"https://api.github.com/users/LukeButtersFunnelback/gists{/gist_id}","starred_url":"https://api.github.com/users/LukeButtersFunnelback/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LukeButtersFunnelback/subscriptions","organizations_url":"https://api.github.com/users/LukeButtersFunnelback/orgs","repos_url":"https://api.github.com/users/LukeButtersFunnelback/repos","events_url":"https://api.github.com/users/LukeButtersFunnelback/events{/privacy}","received_events_url":"https://api.github.com/users/LukeButtersFunnelback/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-10-05T07:13:12Z","updated_at":"2016-11-07T02:55:46Z","closed_at":null,"body":"Hi I am doing the tutorial but I can't seem to get pass getting \"cities in california\" to work.. I increased the logs and saw that it had the following:\n\n```\naddToChart $Unary: (derivation (formula (fb:type.object.type fb:location.citytown)) (type fb:location.citytown))\naddToChart $Binary: (derivation (formula fb:location.location.containedby) (type (-> fb:location.location fb:location.location)))\naddToChart $Unary: (derivation (formula fb:en.california) (type fb:common.topic))\naddToChart $Set: (derivation (formula fb:en.california) (type fb:common.topic))\n```\n\nI feel like at this point it should follow the rule:\n\n```\n(rule $Set ($Binary $Set) (JoinFn forward))\n```\n\nas it has a $Binary and $Set. However it never seems to be able to create the set from the `JoinFn forward` so it never achieves getting to $ROOT.\nI don't know what else to do as I am just learning however it might be useful to point out the type for containedby is:\n\n```\n> (type fb:location.location.containedby)\n  (-> fb:location.location fb:location.location)\n```\n\nrather than `(-> fb:type.any fb:type.any)` as it is in the tutorial.\nThe complete output for `cities in california` is:\n\n```\n> cities in california\n  Parser.parse: parse {\n    Parser.coarsePrune {\n      ParserState.infer {\n        addToChart $TOKEN: (derivation (formula (string cities)) (type fb:type.text))\n        addToChart $LEMMA_TOKEN: (derivation (formula (string citie)) (type fb:type.text))\n        addToChart $TOKEN: (derivation (formula (string in)) (type fb:type.text))\n        addToChart $LEMMA_TOKEN: (derivation (formula (string in)) (type fb:type.text))\n        addToChart $TOKEN: (derivation (formula (string california)) (type fb:type.text))\n        addToChart $LEMMA_TOKEN: (derivation (formula (string california)) (type fb:type.text))\n        addToChart $PHRASE: (derivation (formula (string cities)) (type fb:type.text))\n        addToChart $LEMMA_PHRASE: (derivation (formula (string citie)) (type fb:type.text))\n        addToChart $PHRASE: (derivation (formula (string \"cities in\")) (type fb:type.text))\n        addToChart $LEMMA_PHRASE: (derivation (formula (string \"citie in\")) (type fb:type.text))\n        addToChart $PHRASE: (derivation (formula (string \"cities in california\")) (type fb:type.text))\n        addToChart $LEMMA_PHRASE: (derivation (formula (string \"citie in california\")) (type fb:type.text))\n        addToChart $PHRASE: (derivation (formula (string in)) (type fb:type.text))\n        addToChart $LEMMA_PHRASE: (derivation (formula (string in)) (type fb:type.text))\n        addToChart $PHRASE: (derivation (formula (string \"in california\")) (type fb:type.text))\n        addToChart $LEMMA_PHRASE: (derivation (formula (string \"in california\")) (type fb:type.text))\n        addToChart $PHRASE: (derivation (formula (string california)) (type fb:type.text))\n        addToChart $LEMMA_PHRASE: (derivation (formula (string california)) (type fb:type.text))\n        ParserState.pruneCell($PHRASE:0:1): 1 derivations {\n          $PHRASE(0,1): (string cities) cities, [score=0.0]\n        }\n        addToChart $Unary: (derivation (formula null))\n        ParserState.pruneCell($Unary:0:1): 1 derivations {\n          $Unary(0,1): null , [score=NaN]\n        }\n        addToChart $Set: (derivation (formula null))\n        ParserState.pruneCell($Set:0:1): 1 derivations {\n          $Set(0,1): null , [score=NaN]\n        }\n        addToChart $ROOT: (derivation (formula null))\n        addToChart $Binary: (derivation (formula null))\n        ParserState.pruneCell($LEMMA_PHRASE:0:1): 1 derivations {\n          $LEMMA_PHRASE(0,1): (string citie) cities, [score=0.0]\n        }\n        ParserState.pruneCell($TOKEN:0:1): 1 derivations {\n          $TOKEN(0,1): (string cities) cities, [score=0.0]\n        }\n        ParserState.pruneCell($ROOT:0:1): 1 derivations {\n          $ROOT(0,1): null , [score=NaN]\n        }\n        ParserState.pruneCell($Binary:0:1): 1 derivations {\n          $Binary(0,1): null , [score=NaN]\n        }\n        ParserState.pruneCell($LEMMA_TOKEN:0:1): 1 derivations {\n          $LEMMA_TOKEN(0,1): (string citie) cities, [score=0.0]\n        }\n        ParserState.pruneCell($PHRASE:1:2): 1 derivations {\n          $PHRASE(1,2): (string in) in, [score=0.0]\n        }\n        addToChart $Unary: (derivation (formula null))\n        ParserState.pruneCell($Unary:1:2): 1 derivations {\n          $Unary(1,2): null , [score=NaN]\n        }\n        addToChart $Set: (derivation (formula null))\n        ParserState.pruneCell($Set:1:2): 1 derivations {\n          $Set(1,2): null , [score=NaN]\n        }\n        addToChart $ROOT: (derivation (formula null))\n        addToChart $Binary: (derivation (formula null))\n        ParserState.pruneCell($LEMMA_PHRASE:1:2): 1 derivations {\n          $LEMMA_PHRASE(1,2): (string in) in, [score=0.0]\n        }\n        ParserState.pruneCell($TOKEN:1:2): 1 derivations {\n          $TOKEN(1,2): (string in) in, [score=0.0]\n        }\n        ParserState.pruneCell($ROOT:1:2): 1 derivations {\n          $ROOT(1,2): null , [score=NaN]\n        }\n        ParserState.pruneCell($Binary:1:2): 1 derivations {\n          $Binary(1,2): null , [score=NaN]\n        }\n        ParserState.pruneCell($LEMMA_TOKEN:1:2): 1 derivations {\n          $LEMMA_TOKEN(1,2): (string in) in, [score=0.0]\n        }\n        ParserState.pruneCell($PHRASE:2:3): 1 derivations {\n          $PHRASE(2,3): (string california) california, [score=0.0]\n        }\n        addToChart $Unary: (derivation (formula null))\n        ParserState.pruneCell($Unary:2:3): 1 derivations {\n          $Unary(2,3): null , [score=NaN]\n        }\n        addToChart $Set: (derivation (formula null))\n        ParserState.pruneCell($Set:2:3): 1 derivations {\n          $Set(2,3): null , [score=NaN]\n        }\n        addToChart $ROOT: (derivation (formula null))\n        addToChart $Binary: (derivation (formula null))\n        ParserState.pruneCell($LEMMA_PHRASE:2:3): 1 derivations {\n          $LEMMA_PHRASE(2,3): (string california) california, [score=0.0]\n        }\n        ParserState.pruneCell($TOKEN:2:3): 1 derivations {\n          $TOKEN(2,3): (string california) california, [score=0.0]\n        }\n        ParserState.pruneCell($ROOT:2:3): 1 derivations {\n          $ROOT(2,3): null , [score=NaN]\n        }\n        ParserState.pruneCell($Binary:2:3): 1 derivations {\n          $Binary(2,3): null , [score=NaN]\n        }\n        ParserState.pruneCell($LEMMA_TOKEN:2:3): 1 derivations {\n          $LEMMA_TOKEN(2,3): (string california) california, [score=0.0]\n        }\n        addToChart $Set: (derivation (formula null))\n        addToChart $Set: (derivation (formula null))\n        ParserState.pruneCell($PHRASE:0:2): 1 derivations {\n          $PHRASE(0,2): (string \"cities in\") cities in, [score=0.0]\n        }\n        addToChart $Unary: (derivation (formula null))\n        ParserState.pruneCell($Unary:0:2): 1 derivations {\n          $Unary(0,2): null , [score=NaN]\n        }\n        addToChart $Set: (derivation (formula null))\n        ParserState.pruneCell($Set:0:2): 3 derivations {\n          $Set(0,2): null , [score=NaN]\n          $Set(0,2): null , [score=NaN]\n          $Set(0,2): null , [score=NaN]\n        }\n        addToChart $ROOT: (derivation (formula null))\n        addToChart $ROOT: (derivation (formula null))\n        addToChart $ROOT: (derivation (formula null))\n        addToChart $Binary: (derivation (formula null))\n        ParserState.pruneCell($LEMMA_PHRASE:0:2): 1 derivations {\n          $LEMMA_PHRASE(0,2): (string \"citie in\") cities in, [score=0.0]\n        }\n        ParserState.pruneCell($ROOT:0:2): 3 derivations {\n          $ROOT(0,2): null , [score=NaN]\n          $ROOT(0,2): null , [score=NaN]\n          $ROOT(0,2): null , [score=NaN]\n        }\n        ParserState.pruneCell($Binary:0:2): 1 derivations {\n          $Binary(0,2): null , [score=NaN]\n        }\n        addToChart $Set: (derivation (formula null))\n        addToChart $Set: (derivation (formula null))\n        ParserState.pruneCell($PHRASE:1:3): 1 derivations {\n          $PHRASE(1,3): (string \"in california\") in california, [score=0.0]\n        }\n        addToChart $Unary: (derivation (formula null))\n        ParserState.pruneCell($Unary:1:3): 1 derivations {\n          $Unary(1,3): null , [score=NaN]\n        }\n        addToChart $Set: (derivation (formula null))\n        ParserState.pruneCell($Set:1:3): 3 derivations {\n          $Set(1,3): null , [score=NaN]\n          $Set(1,3): null , [score=NaN]\n          $Set(1,3): null , [score=NaN]\n        }\n        addToChart $ROOT: (derivation (formula null))\n        addToChart $ROOT: (derivation (formula null))\n        addToChart $ROOT: (derivation (formula null))\n        addToChart $Binary: (derivation (formula null))\n        ParserState.pruneCell($LEMMA_PHRASE:1:3): 1 derivations {\n          $LEMMA_PHRASE(1,3): (string \"in california\") in california, [score=0.0]\n        }\n        ParserState.pruneCell($ROOT:1:3): 3 derivations {\n          $ROOT(1,3): null , [score=NaN]\n          $ROOT(1,3): null , [score=NaN]\n          $ROOT(1,3): null , [score=NaN]\n        }\n        ParserState.pruneCell($Binary:1:3): 1 derivations {\n          $Binary(1,3): null , [score=NaN]\n        }\n        addToChart $Set: (derivation (formula null))\n        addToChart $Set: (derivation (formula null))\n        addToChart $Set: (derivation (formula null))\n        addToChart $Set: (derivation (formula null))\n        ParserState.pruneCell($PHRASE:0:3): 1 derivations {\n          $PHRASE(0,3): (string \"cities in california\") cities in california, [score=0.0]\n        }\n        addToChart $Unary: (derivation (formula null))\n        ParserState.pruneCell($Unary:0:3): 1 derivations {\n          $Unary(0,3): null , [score=NaN]\n        }\n        addToChart $Set: (derivation (formula null))\n        ParserState.pruneCell($Set:0:3): 5 derivations {\n          $Set(0,3): null , [score=NaN]\n          $Set(0,3): null , [score=NaN]\n          $Set(0,3): null , [score=NaN]\n          $Set(0,3): null , [score=NaN]\n          $Set(0,3): null , [score=NaN]\n        }\n        addToChart $ROOT: (derivation (formula null))\n        addToChart $ROOT: (derivation (formula null))\n        addToChart $ROOT: (derivation (formula null))\n        addToChart $ROOT: (derivation (formula null))\n        addToChart $ROOT: (derivation (formula null))\n        addToChart $Binary: (derivation (formula null))\n        ParserState.pruneCell($LEMMA_PHRASE:0:3): 1 derivations {\n          $LEMMA_PHRASE(0,3): (string \"citie in california\") cities in california, [score=0.0]\n        }\n        ParserState.pruneCell($ROOT:0:3): 5 derivations {\n          $ROOT(0,3): null , [score=NaN]\n          $ROOT(0,3): null , [score=NaN]\n          $ROOT(0,3): null , [score=NaN]\n          $ROOT(0,3): null , [score=NaN]\n          $ROOT(0,3): null , [score=NaN]\n        }\n        ParserState.pruneCell($Binary:0:3): 1 derivations {\n          $Binary(0,3): null , [score=NaN]\n        }\n      }\n    }\n    ParserState.infer {\n      addToChart $TOKEN: (derivation (formula (string cities)) (type fb:type.text))\n      addToChart $LEMMA_TOKEN: (derivation (formula (string citie)) (type fb:type.text))\n      addToChart $TOKEN: (derivation (formula (string in)) (type fb:type.text))\n      addToChart $LEMMA_TOKEN: (derivation (formula (string in)) (type fb:type.text))\n      addToChart $TOKEN: (derivation (formula (string california)) (type fb:type.text))\n      addToChart $LEMMA_TOKEN: (derivation (formula (string california)) (type fb:type.text))\n      addToChart $PHRASE: (derivation (formula (string cities)) (type fb:type.text))\n      addToChart $LEMMA_PHRASE: (derivation (formula (string citie)) (type fb:type.text))\n      addToChart $PHRASE: (derivation (formula (string \"cities in\")) (type fb:type.text))\n      addToChart $LEMMA_PHRASE: (derivation (formula (string \"citie in\")) (type fb:type.text))\n      addToChart $PHRASE: (derivation (formula (string \"cities in california\")) (type fb:type.text))\n      addToChart $LEMMA_PHRASE: (derivation (formula (string \"citie in california\")) (type fb:type.text))\n      addToChart $PHRASE: (derivation (formula (string in)) (type fb:type.text))\n      addToChart $LEMMA_PHRASE: (derivation (formula (string in)) (type fb:type.text))\n      addToChart $PHRASE: (derivation (formula (string \"in california\")) (type fb:type.text))\n      addToChart $LEMMA_PHRASE: (derivation (formula (string \"in california\")) (type fb:type.text))\n      addToChart $PHRASE: (derivation (formula (string california)) (type fb:type.text))\n      addToChart $LEMMA_PHRASE: (derivation (formula (string california)) (type fb:type.text))\n      ParserState.pruneCell($PHRASE:0:1): 1 derivations {\n        $PHRASE(0,1): (string cities) cities, [score=0.0]\n      }\n      addToChart $Unary: (derivation (formula (fb:type.object.type fb:location.citytown)) (type fb:location.citytown))\n      ParserState.pruneCell($LEMMA_PHRASE:0:1): 1 derivations {\n        $LEMMA_PHRASE(0,1): (string citie) cities, [score=0.0]\n      }\n      ParserState.pruneCell($Unary:0:1): 1 derivations {\n        $Unary(0,1): (fb:type.object.type fb:location.citytown) , [score=0.0]\n      }\n      ParserState.pruneCell($TOKEN:0:1): 1 derivations {\n        $TOKEN(0,1): (string cities) cities, [score=0.0]\n      }\n      ParserState.pruneCell($LEMMA_TOKEN:0:1): 1 derivations {\n        $LEMMA_TOKEN(0,1): (string citie) cities, [score=0.0]\n      }\n      ParserState.pruneCell($PHRASE:1:2): 1 derivations {\n        $PHRASE(1,2): (string in) in, [score=0.0]\n      }\n      addToChart $Binary: (derivation (formula fb:location.location.containedby) (type (-> fb:location.location fb:location.location)))\n      ParserState.pruneCell($LEMMA_PHRASE:1:2): 1 derivations {\n        $LEMMA_PHRASE(1,2): (string in) in, [score=0.0]\n      }\n      ParserState.pruneCell($TOKEN:1:2): 1 derivations {\n        $TOKEN(1,2): (string in) in, [score=0.0]\n      }\n      ParserState.pruneCell($Binary:1:2): 1 derivations {\n        $Binary(1,2): fb:location.location.containedby , [score=0.0]\n      }\n      ParserState.pruneCell($LEMMA_TOKEN:1:2): 1 derivations {\n        $LEMMA_TOKEN(1,2): (string in) in, [score=0.0]\n      }\n      ParserState.pruneCell($PHRASE:2:3): 1 derivations {\n        $PHRASE(2,3): (string california) california, [score=0.0]\n      }\n      addToChart $Unary: (derivation (formula fb:en.california) (type fb:common.topic))\n      ParserState.pruneCell($Unary:2:3): 1 derivations {\n        $Unary(2,3): fb:en.california , [score=0.0]\n      }\n      addToChart $Set: (derivation (formula fb:en.california) (type fb:common.topic))\n      ParserState.pruneCell($LEMMA_PHRASE:2:3): 1 derivations {\n        $LEMMA_PHRASE(2,3): (string california) california, [score=0.0]\n      }\n      ParserState.pruneCell($TOKEN:2:3): 1 derivations {\n        $TOKEN(2,3): (string california) california, [score=0.0]\n      }\n      ParserState.pruneCell($LEMMA_TOKEN:2:3): 1 derivations {\n        $LEMMA_TOKEN(2,3): (string california) california, [score=0.0]\n      }\n      ParserState.pruneCell($Set:2:3): 1 derivations {\n        $Set(2,3): fb:en.california , [score=0.0]\n      }\n      ParserState.pruneCell($PHRASE:0:2): 1 derivations {\n        $PHRASE(0,2): (string \"cities in\") cities in, [score=0.0]\n      }\n      ParserState.pruneCell($LEMMA_PHRASE:0:2): 1 derivations {\n        $LEMMA_PHRASE(0,2): (string \"citie in\") cities in, [score=0.0]\n      }\n      ParserState.pruneCell($PHRASE:1:3): 1 derivations {\n        $PHRASE(1,3): (string \"in california\") in california, [score=0.0]\n      }\n      ParserState.pruneCell($LEMMA_PHRASE:1:3): 1 derivations {\n        $LEMMA_PHRASE(1,3): (string \"in california\") in california, [score=0.0]\n      }\n      ParserState.pruneCell($PHRASE:0:3): 1 derivations {\n        $PHRASE(0,3): (string \"cities in california\") cities in california, [score=0.0]\n      }\n      ParserState.pruneCell($LEMMA_PHRASE:0:3): 1 derivations {\n        $LEMMA_PHRASE(0,3): (string \"citie in california\") cities in california, [score=0.0]\n      }\n    }\n    Parser.ensureExecuted \n  }\n  Parser.setEvaluation: 0 candidates \n  Example: cities in california {\n    Tokens: [cities, in, california]\n    Lemmatized tokens: [citie, in, california]\n    POS tags: [UNK, UNK, UNK]\n    NER tags: [UNK, UNK, UNK]\n    NER values: [UNK, UNK, UNK]\n    Dependency children: []\n  }\n```\n"},"comment":{"url":"https://api.github.com/repos/percyliang/sempre/issues/comments/258736568","html_url":"https://github.com/percyliang/sempre/issues/114#issuecomment-258736568","issue_url":"https://api.github.com/repos/percyliang/sempre/issues/114","id":258736568,"user":{"login":"LukeButtersFunnelback","id":7076477,"avatar_url":"https://avatars.githubusercontent.com/u/7076477?v=3","gravatar_id":"","url":"https://api.github.com/users/LukeButtersFunnelback","html_url":"https://github.com/LukeButtersFunnelback","followers_url":"https://api.github.com/users/LukeButtersFunnelback/followers","following_url":"https://api.github.com/users/LukeButtersFunnelback/following{/other_user}","gists_url":"https://api.github.com/users/LukeButtersFunnelback/gists{/gist_id}","starred_url":"https://api.github.com/users/LukeButtersFunnelback/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LukeButtersFunnelback/subscriptions","organizations_url":"https://api.github.com/users/LukeButtersFunnelback/orgs","repos_url":"https://api.github.com/users/LukeButtersFunnelback/repos","events_url":"https://api.github.com/users/LukeButtersFunnelback/events{/privacy}","received_events_url":"https://api.github.com/users/LukeButtersFunnelback/received_events","type":"User","site_admin":false},"created_at":"2016-11-07T02:55:46Z","updated_at":"2016-11-07T02:55:46Z","body":"Does the tutorial need to be updated?"}}
{"actor":{"display_login":"LukeButtersFunnelback"}}