mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-19 17:59:32 -06:00
PGF2 & PGFService: enable callbacks for named entities and chunks in the c-parse & c-translate web requests
This commit is contained in:
@@ -155,8 +155,8 @@ cpgfMain command (t,(pgf,pc)) =
|
||||
return $
|
||||
maybe id take mlimit . drop start # cparse
|
||||
where
|
||||
cparse = C.parse concr cat input
|
||||
--cparse = C.parseWithHeuristics concr cat input (-1) callbacks
|
||||
--cparse = C.parse concr cat input
|
||||
cparse = C.parseWithHeuristics concr cat input (-1) callbacks
|
||||
callbacks = maybe [] cb $ lookup (C.abstractName pgf) C.literalCallbacks
|
||||
cb fs = [(cat,f pgf (from,concr))|(cat,f)<-fs]
|
||||
{-
|
||||
|
||||
Reference in New Issue
Block a user