Added two helper methods used in method populateSent, getType and getAllWords. Have not tested yet. Fixed a few bugs in populateSent method. Added a fileName variable in Treatment class.
Added 3 new helper methods used by method populateSents. They are getFirstNWords, populateUnknownWordsTable, and insertUnknown. Added test cases and fully tested methods getType, getFirstWords, and getAllWords. Added a new field in the sentenceTable, which is the source.
Encapsulated all helper methods of method populateSents into a utility class named PopulateSentsUtility. Created a test class of populateSentsUtility class. Moved all test cases of those methods into the test class.
Renamed class PopulateSentsUtility to PopulateSentenceUtility, and class PopulateSentsUtilityTest to PopulateSentenceUtilityTest.
replaced all occurences of Sent by Sentence
Test two cases in method characterHeuristics thoroughly.
In characterHeuristics, cases noun rule 2, noun rule 3, descriptor rule 1, descriptor rule 2 are added. Test cases have been added to test them thoroughly. Method isDescriptor is added and tested.
Added method getNounsRule1 to implement noun rule 1 in method characterHeuristis. added all test cases needed to test it. Added all test cases needed to test method filterOutDescriptors. Added three helper methods isDescriptor, isMatched, add2HeuristicNounTable. Added test cases to test method isDescriptor and isMatched. Revised code of method characterHeuristics, added some missing parts, and fixed a number of bugs.
1) Encapsulate all data structures used to hold the data internally to a single Class DataHolder. 2) Added methods getAdjNouns, getAdjNounSent. Added test cases to test them. 3) Issue 15 is done.
Method getWordToSources() has been finished. Test cases were added to test it.
Method getHeuristicNouns() has been finished. Test cases were added to test it.
Override the equals method in Class DataHolder, Sentence. Fixed a bug in the override of equals method in Class DiscountedKey, WordPOSKey. Added a Learner class with a learn method. Added test case to the method.
Added a helper method strip. Added test cases of it. Reviewed part of the getHeuristicsNouns method.
1. Created a new class StringUtility. Moved all helper methods to process string from class UnsupervisedClauseMarkup to it. Created a test class StringUtilityTest of it. Moved all test cases from class UnsupervisedClauseMarkup to it. 2. Created a new class Constant to define all the constants. Move some of the constants (not all yet) from class UnsupervisedClauseMarkup to it. Modified any code to adopt that change.
Moved some constants to Constant class.
Moved several constants to Constant class. Added a test case to method getSingularPluralPair.
Added a test case to method getSingularPluralPair.
Fixed a bug in class Constant. Fixed several bugs in method getSingularPluralPair. Added all test cases to it, and fully tested it.
1) Moved methods isWord into StringUtility class. Moved its test cases into StringUtilityTest class. 2) Moved methods getRoot, getSingularPluralPair, getSingularPluralPairHelper into WordFormUtility class. Moved their test cases, and the test cases of methods getNumberHelper1, getNumberHelper2, getPluralRuleHelper into WordFormUtilityTest class. 3) Fully tested method getHeuristicsNouns. In UnsupervisedClauseMarkup class, deleted all the old code which has been moved to WordFormUnility class.
1) Moved some stuff from UnsupervisedClauseMarkup class to Learner class. 2) Moved method segmentSentence from UnsupervisedClauseMarkup class to PopulateSentenceUtility class. 3) Deleted those methods in UnsupervisedClauseMarkup class which have been moved to other utility classes.