348c5137b947c1347c34680095c7184a33a0de9c
Files Diff
- Added: 0
- Removed: 0
- Renamed: 0
- Modified: 5
Refactorings reported:
Refactoring Name | Occurences | ||
---|---|---|---|
Rename Method | 2 | ||
Rename Method public setLabelDictionary(seedSets Map<String,Set<String>>) : void renamed to public setSeedLabelDictionary(seedSets Map<String,Set<String>>) : void in class edu.stanford.nlp.patterns.ConstantsAndVariables | From | To | |
Rename Method public getLabelDictionary() : Map<String,Set<String>> renamed to public getSeedLabelDictionary() : Map<String,Set<String>> in class edu.stanford.nlp.patterns.ConstantsAndVariables | From | To | |
Change Parameter Type | 3 | ||
Change Parameter Type identifiedWords : Set<String> to identifiedWords : Collection<String> in method public labelWords(label String, sents Map<String,DataInstance>, identifiedWords Collection<String>) : void in class edu.stanford.nlp.patterns.GetPatternsFromDataMultiClass | From | To | |
Change Parameter Type seedwords : Set<String> to seedwords : Collection<String> in method public LabelWithSeedWords(seedwords Collection<String>, sents Map<String,DataInstance>, keyset List<String>, labelclass Class, label String, minLen4FuzzyForPattern int, backgroundSymbol String, dictWords Set<String>, stringTransformation Function<CoreLabel,String>, writeMatchedTokensIdsForEachPhrase boolean) in class edu.stanford.nlp.patterns.GetPatternsFromDataMultiClass.LabelWithSeedWords | From | To | |
Change Parameter Type seedWords : Set<String> to seedWords : Collection<String> in method public runLabelSeedWords(sents Map<String,DataInstance>, answerclass Class, label String, seedWords Collection<String>, constVars ConstantsAndVariables) : void in class edu.stanford.nlp.patterns.GetPatternsFromDataMultiClass | From | To | |
Move Method | 2 | ||
Move Method public setLearnedWords(words Counter<String>, label String) : void from class edu.stanford.nlp.patterns.GetPatternsFromDataMultiClass to public setLearnedWords(words Counter<String>, label String) : void from class edu.stanford.nlp.patterns.ConstantsAndVariables | From | To | |
Move Method public getLearnedWords(label String) : Counter<String> from class edu.stanford.nlp.patterns.GetPatternsFromDataMultiClass to public getLearnedWords(label String) : Counter<String> from class edu.stanford.nlp.patterns.ConstantsAndVariables | From | To | |
Rename Variable | 1 | ||
Rename Variable tokensMatchedPatterns : CollectionValuedMap<String,Integer> to matchedTokensByPat : CollectionValuedMap<E,Triple<String,Integer,Integer>> in method public labelWords(label String, sents Map<String,DataInstance>, identifiedWords Collection<String>) : void in class edu.stanford.nlp.patterns.GetPatternsFromDataMultiClass | From | To | |
Change Return Type | 1 | ||
Change Return Type void to String in method private processFile(line String) : String in class edu.stanford.nlp.patterns.surface.TextAnnotationPatternsInterface.PerformActionUpdateModel | From | To | |
Move Attribute | 1 | ||
Move Attribute package learnedWords : Map<String,Counter<String>> from class edu.stanford.nlp.patterns.GetPatternsFromDataMultiClass to package learnedWords : Map<String,Counter<String>> from class edu.stanford.nlp.patterns.ConstantsAndVariables | From | To | |
Rename Attribute | 1 | ||
Rename Attribute labelDictionary : Map<String,Set<String>> to seedLabelDictionary : Map<String,Set<String>> in class edu.stanford.nlp.patterns.ConstantsAndVariables | From | To | |
Change Variable Type | 1 | ||
Change Variable Type tokensMatchedPatterns : CollectionValuedMap<String,Integer> to matchedTokensByPat : CollectionValuedMap<E,Triple<String,Integer,Integer>> in method public labelWords(label String, sents Map<String,DataInstance>, identifiedWords Collection<String>) : void in class edu.stanford.nlp.patterns.GetPatternsFromDataMultiClass | From | To | |
Extract Method | 1 | ||
Extract Method public labelWords(label String, sents Map<String,DataInstance>, identifiedWords Collection<String>, outFile String, matchedTokensByPat CollectionValuedMap<E,Triple<String,Integer,Integer>>) : void extracted from public labelWords(label String, sents Map<String,DataInstance>, identifiedWords Set<String>, outFile String, matchedTokensByPat CollectionValuedMap<E,Triple<String,Integer,Integer>>) : void in class edu.stanford.nlp.patterns.GetPatternsFromDataMultiClass | From | To | |
Rename Parameter | 1 | ||
Rename Parameter file : String to line : String in method private processFile(line String) : String in class edu.stanford.nlp.patterns.surface.TextAnnotationPatternsInterface.PerformActionUpdateModel | From | To |