1
0
forked from GitHub/gf-core

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

@@ -2,7 +2,7 @@ import qualified Data.Map
import qualified Data.Set
import Data.List
langs = words "Bul Chi Dut Eng Fin Fre Ger Hin Ita Spa Swe"
langs = words "Bul Cat Chi Dut Eng Fin Fre Ger Hin Ita Spa Swe"
-- apply a function to every line, changing it to a list
changeLinesLang :: (String -> [String]) -> String -> IO ()

File diff suppressed because it is too large Load Diff

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)