1
0
forked from GitHub/gf-core
Files
gf-core/lib/src/chinese
hallgren 72459b5158 lib/src/*/Numeral*.gf: fix inconsistent inheritance form Cat
While the abstract Numeral inherits only Cat[Numeral,Digits], some of the
concrete NumeralNNN of Numeral inherited everything from CatNNN.

Normally the compiler outputs a warning message when a concrete syntax 
contains superflous lincats, but apparently not when they get included
through inheritance...

This does not seem to cause problems in the Haskell run-time system, but the 
C run-time system fails to load PGFs with superflous lincats.

This problems shows up when creating application grammars that inherit Numeral.
The Phrasebook is an example of such a grammar.
2015-08-26 11:53:16 +00:00
..
2015-07-21 15:38:16 +00:00
2015-07-14 15:11:33 +00:00
2014-12-08 13:14:47 +00:00

Chinese resource grammar

(c) Aarne Ranta, Zhuo Lin Qiqige, Qiao Haiyan 2012


19/10/2012

This is a compilable, almost complete, but not yet perfect implementation of the GF resource grammar for Chinese.

The Synopsis test set has the following statistics:

  GOOD 295  68%
  SOSO  66  15%
  BAD   76  17%

More details:

  eng_chi2.txt     -- the test set with annotations
  chinese-log.txt  -- a log of the grammar writing process

There is also a Pinyin version of the grammar, in the subdirectory ./pinyin/.

The grammar is not yet a part of the "official" demos and documentation. But you can find alpha versions in

  http://tournesol.cs.chalmers.se/~aarne/gf/csynopsis.html   -- make sure to select coding UTF8 in your browser 

  http://tournesol.cs.chalmers.se:41296/minibar/minibar.html -- select ResourceDemo