mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-09 04:59:31 -06:00
prepositional verbs bootstrapped for DictionaryFin
This commit is contained in:
@@ -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
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user