?? templatelanguagegenerator.ctxt
字號:
#BlueJ class context
comment0.target=TemplateLanguageGenerator()
comment0.text=\nCreates\ a\ TemplateLanguageGenerator,\ sets\ up\ the\ sentence\ templates,\n\n
comment1.target=void\ populateSentences()
comment1.text=\nSets\ up\ the\ sentence\ templates\ which\ can\ be\ used\ by\ the\ language\ generator\n\n
comment10.params=remark
comment10.target=String\ generateReply(String)
comment10.text=\nGenerate\ a\ reply\ to\ the\ specified\ remark.\ The\ reply\ is\ related\ to\ the\ \ninput\ remark\ in\ the\ vague\ sense\ that\ it\ contains\ a\ word\ relating\ to\ one\ \nof\ the\ words\ in\ the\ input\n\n@param\ remark\ The\ remark\ which\ must\ be\ responded\ to\n\n@return\ A\ string\ containing\ a\ response\ to\ the\ specified\ remark\n\n
comment2.target=void\ fillSentenceTemplates()
comment2.text=\nFills\ the\ five\ templates\ into\ the\ sentenceList\n\n
comment3.target=String\ generateSentence()
comment3.text=\nGenerates\ a\ sentence\ using\ a\ randomly\ chosen\ template\n\n@return\ A\ string\ containing\ the\ sentence\n\n
comment4.params=sentenceTemplate
comment4.target=String\ expandTemplate(String)
comment4.text=\nExpands\ the\ template\ into\ a\ full\ sentence.\ The\ templates\ are\ strings\nconsisting\ of\ canned\ text\ and\ instructions\ to\ generate\ more\ text.\ Canned\nsegments\ and\ instructions\ are\ delimited\ by\ "||".\n\n@param\ sentenceTemplate\ The\ template\ which\ will\ be\ expanded\n\n@return\ A\ string\ containing\ the\ sentence\ expanded\ out\ of\ the\ template\n\n
comment5.params=remark
comment5.target=String\ keyWordMatch(String)
comment5.text=\nUse\ key\ word\ matching\ to\ generate\ a\ canned\ response\ to\ the\ specified\ncomment.\n\n@param\ remark\ The\ input\ which\ we\ must\ respond\ to\n\n@return\ A\ string\ containing\ a\ reply\ to\ the\ specified\ remark\n\n
comment6.target=void\ fillReplyMap()
comment6.text=\nEnter\ all\ the\ known\ key\ words\ and\ their\ associated\ reponses\ into\ our\ reply\ map.\n\n
comment7.target=String\ pickDeFaultReply()
comment7.text=\nThe\ following\ is\ our\ default\ reply.\n\n@return\ A\ default\ reply\ which\ is\ set\ by\ the\ programmer\ at\ the\ beginning\n\n
comment8.params=remark
comment8.target=String\ findKeyWord(String)
comment8.text=\nParse\ the\ input\ remark,\ and\ find\ a\ key\ word\ which\ we\ can\ respond\ to\n\n@param\ remark\ The\ input\ to\ be\ parsed\n\n@return\ A\ keyword\ from\ the\ input\ which\ will\ be\ used\ in\ the\ reply\n\n
comment9.params=keyWord
comment9.target=String\ expandTemplateTopic(String)
comment9.text=\nGenerate\ a\ word\ list\ which\ is\ synonyms\ to\ the\ keyWord\ and\ expand\ the\ templates\ which\ \nare\ specified\ in\ sentencePopulate.\n\n@param\ keyWord\ The\ input\ that\ should\ be\ generated\ a\ synonym\n@return\ A\ string\ that\ contain\ the\ whole\ reply\n\n
numComments=11
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -