prepositional verbs bootstrapped for DictionaryFin

This commit is contained in:
aarne
2014-12-07 17:26:16 +00:00
parent 34e3431c32
commit 98558d85e7
3 changed files with 1452 additions and 2 deletions

View File

@@ -31,7 +31,7 @@ advV s = "advV " ++ s
v2V v = "(lin V " ++ v ++ "_V2) "
getPrepsAdvs lang = do
mkPrepVerbDict lang = do
rs <- readFile ("Dictionary" ++ lang ++ ".gf") >>= return . lines
let dict = M.fromList [(f,unwords r) | "lin":f:"=":r <- map words rs]
let look x = maybe ("","variants {} ;") (\r -> ("--DD ",r)) (M.lookup x dict)