mirror of
https://github.com/GrammaticalFramework/gf-rgl.git
synced 2026-05-27 08:58:55 -06:00
Fin: some more infinitives interpreted
This commit is contained in:
@@ -24,7 +24,7 @@ factTree fact = case action fact of
|
|||||||
(maybe presentTense id (tense fact))
|
(maybe presentTense id (tense fact))
|
||||||
(maybe positivePol id (polarity fact))
|
(maybe positivePol id (polarity fact))
|
||||||
(GPredVP
|
(GPredVP
|
||||||
(maybe Gsomebody_NP id (agent fact))
|
(maybe (maybe Gsomebody_NP id (source fact)) id (agent fact))
|
||||||
vp)
|
vp)
|
||||||
_ -> GUttNP Gnothing_NP
|
_ -> GUttNP Gnothing_NP
|
||||||
|
|
||||||
@@ -38,18 +38,53 @@ negativePol = GPNeg
|
|||||||
|
|
||||||
facts :: Infinitive.Tree a -> [Fact]
|
facts :: Infinitive.Tree a -> [Fact]
|
||||||
facts t = case t of
|
facts t = case t of
|
||||||
|
GAdjCN (GAgentPartAP np vpslash) cn ->
|
||||||
|
[initFact{
|
||||||
|
tense = Just perfectTense,
|
||||||
|
agent = Just np,
|
||||||
|
action = Just (GComplSlash vpslash (GMassNP cn))}]
|
||||||
|
GPredVP np (GComplPresPartActAgrVS vs vp) ->
|
||||||
|
[initFact{
|
||||||
|
attitude = Just vs,
|
||||||
|
source = Just np,
|
||||||
|
action = Just vp}]
|
||||||
|
GPredVP np (GComplPastPartActAgrVS vs vp) ->
|
||||||
|
[initFact{tense = Just perfectTense,
|
||||||
|
attitude = Just vs,
|
||||||
|
source = Just np,
|
||||||
|
action = Just vp}]
|
||||||
|
GPredVP np (GAdvVP vp adv) ->
|
||||||
|
[f{source = Just np} | f <- facts vp ++ facts adv]
|
||||||
|
GPredVP np vp ->
|
||||||
|
[f{source = Just np} | f <- facts vp]
|
||||||
|
GUseV v ->
|
||||||
|
[initFact{
|
||||||
|
action = Just t}]
|
||||||
GComplPresPartActVS vs np vp ->
|
GComplPresPartActVS vs np vp ->
|
||||||
[initFact{attitude = Just vs, agent = Just np, action = Just vp}]
|
[initFact{
|
||||||
|
attitude =
|
||||||
|
Just vs,
|
||||||
|
agent = Just np,
|
||||||
|
action = Just vp}]
|
||||||
GComplPastPartActVS vs np vp ->
|
GComplPastPartActVS vs np vp ->
|
||||||
[initFact{tense = Just perfectTense, attitude = Just vs,
|
[initFact{
|
||||||
agent = Just np, action = Just vp}]
|
tense = Just perfectTense,
|
||||||
|
attitude = Just vs,
|
||||||
|
agent = Just np,
|
||||||
|
action = Just vp}]
|
||||||
GInf3AbessAdv vp ->
|
GInf3AbessAdv vp ->
|
||||||
[initFact{polarity = Just negativePol, action = Just vp}]
|
[initFact{
|
||||||
|
polarity = Just negativePol,
|
||||||
|
action = Just vp}]
|
||||||
GComplPresPartPassVS vs np vpslash ->
|
GComplPresPartPassVS vs np vpslash ->
|
||||||
[initFact{attitude = Just vs, action = Just (GComplSlash vpslash np)}]
|
[initFact{
|
||||||
|
attitude = Just vs,
|
||||||
|
action = Just (GComplSlash vpslash np)}]
|
||||||
GComplPastPartPassVS vs np vpslash ->
|
GComplPastPartPassVS vs np vpslash ->
|
||||||
[initFact{tense = Just perfectTense, attitude = Just vs,
|
[initFact{
|
||||||
action = Just (GComplSlash vpslash np)}]
|
tense = Just perfectTense,
|
||||||
|
attitude = Just vs,
|
||||||
|
action = Just (GComplSlash vpslash np)}]
|
||||||
_ -> composOpMPlus facts t
|
_ -> composOpMPlus facts t
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,2 +1,7 @@
|
|||||||
|
all: pgf hs
|
||||||
|
|
||||||
pgf:
|
pgf:
|
||||||
gf --make -output-format=haskell -haskell=lexical -lexical=N,A,Adv,V,V2,VS,VV,PN --haskell=gadt InfinitiveFin.gf
|
gf --make -output-format=haskell -haskell=lexical -lexical=N,A,Adv,V,V2,VS,VV,PN --haskell=gadt InfinitiveFin.gf
|
||||||
|
|
||||||
|
hs:
|
||||||
|
ghc --make InterpretInfinitives.hs
|
||||||
|
|||||||
Reference in New Issue
Block a user