CSC207-DSSL
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Change in the Keyword class

2 posters

Go down

Change in the Keyword class Empty Change in the Keyword class

Post  Lenny Fri Oct 29, 2010 2:50 pm

I've committed a new version of the keyword class that takes in a second parameter, sig (double) which is the measure of the keyword's significance in its text. I've also changed all classes which create new instances of Keyword to accommodate the new constructor (KWComparer, KWExtractor, KWController and their test suites). The tests still turn up the same results as before the switch, so nothing really changed (note the comparer still fails its test, not because of the new Keyword). Everything works fine.

Note: U know how the KeywordExtractionApp returns a double as a measure of the word's significance? turns out its a percentage, i.e. the sum of all significances of the keywords in the map returned by the library is 1 (e.g. {"gyrados":0.25, "forum":0.25, "Snooki":0.5}).

Lenny
Admin

Posts : 65
Join date : 2010-10-08

Back to top Go down

Change in the Keyword class Empty Re: Change in the Keyword class

Post  Steven Fri Oct 29, 2010 7:06 pm

That's fantastic I'll have a look at that. You know you should stop killing birds with one stone.?!.@#$ What?

Steven
Admin

Posts : 16
Join date : 2010-10-11

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum