Thanks for your reply.Forgive me for not replying you in time,I am sorry.
Yeah,the lines after "Happend in the renaming of Date(Transport/ByTransport/NPDay/NPPlace/NPDay/mkNPDay)" all show the same message
" Warning : atmoic term Adv
conflict CatChi.gf,CommonX.gf
given ....
"
then I do some research about Adv in the GF resource grammar library
CommonX.gf :
Adv ={s: Str}
CatEng.gf inherits CommonX
CatChi.gf :
Adv = {s : Str ; advType : AdvType}
ResChi.gf : AdvType ,which is defined in ResChi is a parametric type.
param AdvType = ATPlace | ATTime | ATManner ;
-- e.g.
in the house 房子里
on Monday 在星期一
by Bus 坐公交车
ParadigmsChi.gf :
AdvType : Type = ResChi.AdvType ;
placeAdvType : AdvType= ATPlace ;
timeAdvType : AdvType = ATTime ;
mannerAdvType : AdvType= ATManner ;
mkAdv = overload {
mkAdv : Str -> Adv
= \s -> lin Adv {s = word s ; advType = ATPlace} ;
mkAdv : Str -> AdvType -> Adv
= \s,at -> lin Adv {s = word s ; advType = at} ; } ;
Constructors.gf : there are different implementations of mkAdv
In the folder phrasebook(GF-master/examples/phrasebook)
SentencesI.gf :
lincat
Date =Adv ;
ByTransport =Adv;
Transport ={name:CN ;by :Adv};
oper
NPDay :Type={name:NP;point :Adv;habitual :Adv} ;
mkNPDay : NP->Adv->Adv ->NPDay =\d,p,h ->{
name=d; point =p; habitual=h };
NPPlace :Type ={name:NP ;at :Adv; to :Adv};
All warnings seems to be related to Adv definitions in Chinese grammar ,which is different from that in other languages
I just know the solutions but I don't know how to write
I can write Date ,Transport and so on in SentencesChi.gf just like that "
concrete SentencesChi of Sentences = NumeralChi ** SentencesI - [
Date,ByTransport,Transport,
NPDay,NPPlace,mkNPDay ] with
(Syntax = SyntaxChi),
(Symbolic = SymbolicChi),
(Lexicon = LexiconChi) ** open SyntaxChi, (P = ParadigmsChi), (R = ResChi) in {
flags coding=utf8 ;
lincat
Date = ;
ByTransport =;
Transport=;
oper
NPDay :Tpye=;
mkNPDay: ;
NPPlace: ;
}
"
So my problem now is how to implement these lincats or operations when it is connected with Chinese adverbial phrases(Adv).
Actually I am not familiar with Chinese grammar . It just make me confused . I had to say that "Oh,it's really a tough time for me".
Looking forward to your kind reply.
Regards
Charles