?? wordnetwrapper.ctxt
字號:
#BlueJ class context
comment0.target=WordNetWrapper()
comment0.text=\nCreates\ a\ new\ WordNetWrapper,\ initialises\ the\ WordNet\ndictionary\ and\ reads\ in\ the\ pre-generated\ additional\ nouns,\ verbs\ and\ adjectives\nlists\ from\ disc.\n\n\n
comment1.target=void\ readInAdjectives()
comment1.text=\nReads\ in\ the\ pre-generated\ list\ of\ adjectives\ from\ disc\ into\ a\ data\ \nstructure\ which\ can\ be\ accessed\ in\ constant\ time\ to\ find\ random\ adjectives\n\n\n
comment10.params=s
comment10.target=boolean\ isAdjective(String)
comment10.text=\nChecks\ whether\ the\ specified\ word\ is\ an\ adjective\ or\ not\n\n@param\ s\ The\ word\ to\ be\ checked\n\n@return\ True\ if\ the\ specified\ string\ is\ an\ adjective\ in\ WordNet,\ \nfalse\ otherwise\n\n
comment11.params=pos\ e
comment11.target=List\ getHypernyms(POS,\ String)
comment11.text=\nRetrieve\ a\ set\ of\ words\ representing\ the\ hypernyms\ for\ every\ sense\ of\ the\nspecified\ word\ and\ part\ of\ speech.\nA\ hypernym\ is\ a\ superordinate\ word\ --\ (a\ word\ that\ is\ more\ generic\ than\ \na\ given\ word)\n<p>\ Note\:\ Adjectives\ don't\ have\ hypernyms\ in\ WordNet;\ this\ method\ with\ an\nadjective\ part\ of\ speech\ will\ return\ an\ empty\ list\ </p>\n\n@param\ pos\ The\ part\ of\ speech\ for\ the\ word\n\n@param\ e\ The\ word\ to\ be\ looked\ up\ \n\n@return\ A\ list\ containing\ all\ the\ direct\ hypernyms\ of\ all\ senses\ of\ the\ \nspecified\ word,\ assuming\ the\ given\ POS.\n\n
comment12.params=pos\ e
comment12.target=List\ getMeronyms(POS,\ String)
comment12.text=\nRetrieve\ a\ list\ of\ words\ representing\ the\ meronyms\ for\ every\ sense\ of\ the\nspecified\ word\ and\ POS.\nMeronym\ -\ The\ name\ of\ a\ constituent\ part\ of,\ the\ substance\ of,\ \nor\ a\ member\ of\ something.\ X\ is\ a\ meronym\ of\ Y\ if\ X\ is\ a\ part\ of\ Y\ .\ \n<p>\ Note\:\ Adjectives\ and\ verbs\ don't\ have\ hypernyms\ in\ WordNet;\ \nthis\ method\ with\ an\ adjective\ or\ verb\ part\ of\ speech\ \nwill\ return\ an\ empty\ list\ </p>\n\n@param\ pos\ The\ part\ of\ speech\ for\ the\ word\n\n@param\ e\ The\ word\ to\ be\ looked\ up\ \n\n@return\ A\ list\ containing\ all\ the\ direct\ meronyms\ of\ all\ senses\ of\ the\ \nspecified\ word,\ assuming\ the\ given\ POS.\n\n
comment13.params=pos\ e
comment13.target=List\ getHyponyms(POS,\ String)
comment13.text=\nRetrieve\ a\ list\ of\ words\ representing\ the\ hyponyms\ for\ every\ sense\ of\ the\nspecified\ word\ and\ POS.\nHyponym\ is\ the\ specific\ term\ used\ to\ designate\ a\ member\ of\ a\ class.\ \nX\ is\ a\ hyponym\ of\ Y\ if\ X\ is\ a\ (kind\ of)\ Y\ .\ \n\n@param\ pos\ The\ part\ of\ speech\ for\ the\ word\n\n@param\ e\ The\ word\ to\ be\ looked\ up\ \n\n@return\ A\ list\ containing\ all\ the\ direct\ hyponyms\ of\ all\ senses\ of\ the\ \nspecified\ word,\ assuming\ the\ given\ POS.\n\n
comment14.params=word
comment14.target=List\ getAllSynonyms(String)
comment14.text=\nLook\ up\ all\ synonyms\ of\ this\ word,\ for\ all\ parts\ of\ speech\n\n@param\ word\ The\ word\ for\ which\ synonyms\ are\ required\n\n@return\ A\ list\ containing\ strings\ representing\ synonyms\ of\ the\ specified\ word\n\n
comment15.target=void\ testRandomWords()
comment15.text=\nUsed\ to\ test\ the\ generation\ of\ random\ words\ from\ WordNet\n\n\n
comment16.target=void\ testSynonyms()
comment16.text=\nUsed\ to\ test\ the\ code\ for\ generating\ synonyms\ for\ each\ part\ of\ speech\n\n\n
comment17.target=void\ testHyponyms()
comment17.text=\nUsed\ to\ test\ the\ code\ for\ generating\ synonyms\ for\ nouns\ and\ verbs\n\n\n
comment18.target=void\ testHypernyms()
comment18.text=\nUsed\ to\ test\ the\ code\ for\ generating\ hypernyms\ for\ nouns\ and\ verbs\n\n\n
comment19.target=void\ testMeronyms()
comment19.text=\nUsed\ to\ test\ the\ code\ for\ generating\ meronyms\ for\ nouns\ \n\n\n
comment2.target=void\ readInNouns()
comment2.text=\nReads\ in\ the\ pre-generated\ list\ of\ nouns\ from\ disc\ into\ a\ data\ structure\nwhich\ can\ be\ accessed\ in\ constant\ time\ to\ find\ random\ nouns\n\n\n
comment20.params=args
comment20.target=void\ main([)
comment20.text=\nCreates\ a\ new\ interface\ to\ WordNet\ and\ tests\ methods\n@param\ args\ None\ necessary\n\n
comment3.target=void\ readInVerbs()
comment3.text=\nReads\ in\ the\ pre-generated\ list\ of\ verbs\ from\ disc\ into\ a\ data\ structure\nwhich\ can\ be\ accessed\ in\ constant\ time\ to\ find\ random\ verbs\n\n\n
comment4.target=String\ getVerbAtRandom()
comment4.text=\nRetrieve\ a\ verb\ at\ random\ from\ WordNet\n\n@return\ A\ string\ containing\ a\ randomly\ generated\ verb\n\n
comment5.target=String\ getAdjectiveAtRandom()
comment5.text=\nRetrieve\ an\ adjective\ at\ random\ from\ WordNet\n\n@return\ A\ string\ containing\ a\ randomly\ generated\ adjective\n\n
comment6.target=String\ getNounAtRandom()
comment6.text=\nRetrieve\ a\ noun\ at\ random\ from\ WordNet\n\n@return\ A\ string\ containing\ a\ randomly\ generated\ noun\n\n
comment7.params=pos\ lookupWord
comment7.target=List\ getSynonyms(POS,\ String)
comment7.text=\nFind\ the\ synonyms\ of\ the\ specified\ word\ for\ the\ specified\ part\ of\ speech\n\n@param\ pos\ The\ part\ of\ speech\ category\ for\ the\ word\n\n@param\ lookupWord\ The\ word\ for\ which\ synonyms\ are\ required\n\n@return\ A\ list\ containing\ strings\ representing\ synonyms\ of\ the\ specified\ \nword\ with\ the\ specified\ part\ of\ speech\n\n
comment8.params=s
comment8.target=boolean\ isNoun(String)
comment8.text=\nChecks\ whether\ the\ specified\ word\ is\ a\ noun\ or\ not\n\n@param\ s\ The\ word\ to\ be\ checked\n\n@return\ True\ if\ the\ specified\ string\ is\ a\ noun\ in\ WordNet,\ false\ otherwise\n\n
comment9.params=s
comment9.target=boolean\ isVerb(String)
comment9.text=\nChecks\ whether\ the\ specified\ word\ is\ a\ verb\ or\ not\n\n@param\ s\ The\ word\ to\ be\ checked\n\n@return\ True\ if\ the\ specified\ string\ is\ a\ verb\ in\ WordNet,\ false\ otherwise\n\n
numComments=21
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -