forked from GitHub/gf-core
forgot to export parseWithHeuristics from Haskell
This commit is contained in:
@@ -15,7 +15,7 @@
|
|||||||
module PGF2 (-- * PGF
|
module PGF2 (-- * PGF
|
||||||
PGF,readPGF,abstractName,startCat,
|
PGF,readPGF,abstractName,startCat,
|
||||||
-- * Concrete syntax
|
-- * Concrete syntax
|
||||||
Concr,languages,parse,linearize,
|
Concr,languages,parse,parseWithHeuristics,linearize,
|
||||||
-- * Trees
|
-- * Trees
|
||||||
Expr,readExpr,showExpr,unApp,
|
Expr,readExpr,showExpr,unApp,
|
||||||
-- * Morphology
|
-- * Morphology
|
||||||
@@ -234,8 +234,8 @@ getAnalysis ref self c_lemma c_anal prob exn = do
|
|||||||
parse :: Concr -> String -> String -> Either String [(Expr,Float)]
|
parse :: Concr -> String -> String -> Either String [(Expr,Float)]
|
||||||
parse lang cat sent = parse_with_heuristics lang cat sent (-1.0) []
|
parse lang cat sent = parse_with_heuristics lang cat sent (-1.0) []
|
||||||
|
|
||||||
parse_with_heuristics :: Concr -> String -> String -> Double -> [(String, Int -> String -> Int -> Maybe (Expr,Float,Int))] -> Either String [(Expr,Float)]
|
parseWithHeuristics :: Concr -> String -> String -> Double -> [(String, Int -> String -> Int -> Maybe (Expr,Float,Int))] -> Either String [(Expr,Float)]
|
||||||
parse_with_heuristics lang cat sent heuristic callbacks =
|
parseWithHeuristics lang cat sent heuristic callbacks =
|
||||||
unsafePerformIO $
|
unsafePerformIO $
|
||||||
do parsePl <- gu_new_pool
|
do parsePl <- gu_new_pool
|
||||||
exprPl <- gu_new_pool
|
exprPl <- gu_new_pool
|
||||||
|
|||||||
Reference in New Issue
Block a user