From 9b496084512ca94ca7fb96fd606e749d02022aad Mon Sep 17 00:00:00 2001 From: john Date: Fri, 11 Jul 2014 09:25:26 +0000 Subject: PGF web service: Return additional completion info with 'full' flag BETA! The 'complete' command now has a new flag 'full' which when set returns additional info about completions. Without 'full' flag (default): [ { "from": "PhrasebookEng", "brackets": { "cat": "_", "fid": 0, "index": 0, "fun": "_", "children": [ { "token": "the" } ] }, "text": "su", "completions": [ "supermarket", "suspect" ] } ] With full=true or full=yes: [ { "from": "PhrasebookEng", "brackets": { "cat": "_", "fid": 0, "index": 0, "fun": "_", "children": [ { "token": "the" } ] }, "text": "su", "completions": [ { "token": "supermarket", "funs": [ { "fid": 421, "fun": "Supermarket", "hyps": [], "cat": "PlaceKind" } ] }, { "token": "suspect", "funs": [ { "fid": 445, "fun": "Suspect", "hyps": [], "cat": "Property" } ] } ] } ] --- src/runtime/haskell/PGF.hs | 1 + 1 file changed, 1 insertion(+) (limited to 'src/runtime/haskell/PGF.hs') diff --git a/src/runtime/haskell/PGF.hs b/src/runtime/haskell/PGF.hs index c1d903f4f..77eac1ada 100644 --- a/src/runtime/haskell/PGF.hs +++ b/src/runtime/haskell/PGF.hs @@ -88,6 +88,7 @@ module PGF( Parse.initState, Parse.nextState, Parse.getCompletions, Parse.recoveryStates, Parse.ParseInput(..), Parse.simpleParseInput, Parse.mkParseInput, Parse.ParseOutput(..), Parse.getParseOutput, + Parse.getContinuationInfo, -- ** Generation -- | The PGF interpreter allows automatic generation of -- cgit v1.2.3