distinguished uni and multi treebanks

This commit is contained in:
aarne
2006-03-03 20:51:03 +00:00
parent 979bb39632
commit 0eb9f74977
5 changed files with 96 additions and 30 deletions

View File

@@ -585,7 +585,7 @@ removeAssoc :: Eq a => a -> [(a,b)] -> [(a,b)]
removeAssoc a = filter ((/=a) . fst)
-- | chop into separator-separated parts
chunks :: String -> [String] -> [[String]]
chunks :: Eq a => a -> [a] -> [[a]]
chunks sep ws = case span (/= sep) ws of
(a,_:b) -> a : bs where bs = chunks sep b
(a, []) -> if null a then [] else [a]