mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-09 04:59:31 -06:00
file with noun classifiers extracted from DictionaryChi"
This commit is contained in:
25487
lib/src/chinese/classifiersChi.txt
Normal file
25487
lib/src/chinese/classifiersChi.txt
Normal file
File diff suppressed because it is too large
Load Diff
@@ -53,7 +53,8 @@ useMapGF m s = case s of
|
||||
where
|
||||
convert cs = case cs of
|
||||
'"':s -> '"' : useMapGF m s
|
||||
c :s -> maybe [c] (head . words) (Map.lookup [c] m) ++ convert s
|
||||
c :s | elem c (['A'..'Z']++['a'..'z'])-> [c] ++ convert s
|
||||
c :s -> maybe ['#',c] (head . words) (Map.lookup [c] m) ++ convert s
|
||||
_ -> cs
|
||||
|
||||
c2pMap ws = Map.fromList [(c,unwords (map tone2tone ps)) | (_,(c,ps)) <- ws]
|
||||
|
||||
Reference in New Issue
Block a user