b706f6ab8c57de5543146c2710495bec3a9a8bd8
Files Diff
- Added: 35
- Removed: 2
- Renamed: 0
- Modified: 31
Refactorings reported:
Refactoring Name | Occurences | ||
---|---|---|---|
Rename Method | 3 | ||
Rename Method public mentions(properties Properties, name String) : Annotator renamed to public entityMentions(properties Properties, name String) : Annotator in class edu.stanford.nlp.pipeline.AnnotatorImplementations | From | To | |
Rename Method public wordToSentences(properties Properties, verbose boolean, boundaryTokenRegex String, boundaryToDiscard Set<String>, htmlElementsToDiscard Set<String>, newlineIsSentenceBreak String, boundaryMultiTokenRegex String, tokenRegexesToDiscard Set<String>) : Annotator renamed to public tokensregex(properties Properties, name String) : Annotator in class edu.stanford.nlp.pipeline.AnnotatorImplementations | From | To | |
Rename Method public create() : Annotator renamed to protected compute() : Annotator in class edu.stanford.nlp.pipeline.AnnotatorPoolTest.SampleAnnotatorFactory | From | To | |
Change Parameter Type | 1 | ||
Change Parameter Type selector : Function<Sentence,List<String>> to selector : Optional<Function<Sentence,List<String>>> in method public dependencyPathBetween(start int, end int, selector Optional<Function<Sentence,List<String>>>) : List<String> in class edu.stanford.nlp.simple.SentenceAlgorithms | From | To | |
Rename Variable | 3 | ||
Rename Variable prefix : String to prefixes : String[] in method public getSignature(name String, properties Properties) : String in class edu.stanford.nlp.util.PropertiesUtils | From | To | |
Rename Variable properties : Properties to propertiesCopy : Properties in method public getSignature(name String, properties Properties) : String in class edu.stanford.nlp.util.PropertiesUtils | From | To | |
Rename Variable oldFactory : AnnotatorFactory to oldAnnotator : CachedAnnotator in method public register(name String, props Properties, annotator Lazy<Annotator>) : boolean in class edu.stanford.nlp.pipeline.AnnotatorPool | From | To | |
Change Return Type | 1 | ||
Change Return Type Map<String,BiFunction<Properties,AnnotatorImplementations,AnnotatorFactory>> to Map<String,BiFunction<Properties,AnnotatorImplementations,Annotator>> in method private getNamedAnnotators() : Map<String,BiFunction<Properties,AnnotatorImplementations,Annotator>> in class edu.stanford.nlp.pipeline.StanfordCoreNLP | From | To | |
Extract Attribute | 3 | ||
Extract Attribute private nerNormalizedCoreAnnotationClass : Class<? extends CoreAnnotation<String>> in class edu.stanford.nlp.pipeline.EntityMentionsAnnotator | From | To | |
Extract Attribute private mentionsCoreAnnotationClass : Class<? extends CoreAnnotation<List<CoreMap>>> in class edu.stanford.nlp.pipeline.EntityMentionsAnnotator | From | To | |
Extract Attribute private nerCoreAnnotationClass : Class<? extends CoreAnnotation<String>> in class edu.stanford.nlp.pipeline.EntityMentionsAnnotator | From | To | |
Merge Parameter | 1 | ||
Merge Parameter [boundaryMultiTokenRegex : String, tokenRegexesToDiscard : Set<String>] to properties : Properties in method public tokensregex(properties Properties, name String) : Annotator in class edu.stanford.nlp.pipeline.AnnotatorImplementations | From | To | |
Change Variable Type | 5 | ||
Change Variable Type entry : Map.Entry<String,BiFunction<Properties,AnnotatorImplementations,AnnotatorFactory>> to entry : Map.Entry<String,BiFunction<Properties,AnnotatorImplementations,Annotator>> in method public getDefaultAnnotatorPool(inputProps Properties, annotatorImplementation AnnotatorImplementations) : AnnotatorPool in class edu.stanford.nlp.pipeline.StanfordCoreNLP | From | To | |
Change Variable Type prefix : String to prefixes : String[] in method public getSignature(name String, properties Properties) : String in class edu.stanford.nlp.util.PropertiesUtils | From | To | |
Change Variable Type oldFactory : AnnotatorFactory to oldAnnotator : CachedAnnotator in method public register(name String, props Properties, annotator Lazy<Annotator>) : boolean in class edu.stanford.nlp.pipeline.AnnotatorPool | From | To | |
Change Variable Type entry : Map.Entry<String,BiFunction<Properties,AnnotatorImplementations,AnnotatorFactory>> to entry : Map.Entry<String,BiFunction<Properties,AnnotatorImplementations,Annotator>> in method public constructAnnotatorPool(inputProps Properties, annotatorImplementation AnnotatorImplementations) : AnnotatorPool in class edu.stanford.nlp.pipeline.StanfordCoreNLP | From | To | |
Change Variable Type pool : Map<String,BiFunction<Properties,AnnotatorImplementations,AnnotatorFactory>> to pool : Map<String,BiFunction<Properties,AnnotatorImplementations,Annotator>> in method private getNamedAnnotators() : Map<String,BiFunction<Properties,AnnotatorImplementations,Annotator>> in class edu.stanford.nlp.pipeline.StanfordCoreNLP | From | To | |
Extract Variable | 3 | ||
Extract Variable pipeline : StanfordCoreNLP in method public main(args String[]) : void from class edu.stanford.nlp.pipeline.StanfordCoreNLP | From | To | |
Extract Variable orNull : E in method public get() : E from class edu.stanford.nlp.util.Lazy | From | To | |
Extract Variable seconds : long in method public elapsedTime(d1 Date, d2 Date) : String from class edu.stanford.nlp.patterns.GetPatternsFromDataMultiClass | From | To | |
Change Attribute Type | 2 | ||
Change Attribute Type factories : Map<String,AnnotatorFactory> to factories : Map<String,CachedAnnotator> in class edu.stanford.nlp.pipeline.AnnotatorPool | From | To | |
Change Attribute Type customAnnotators : LinkedHashMap<String,Annotator> to customAnnotators : AnnotatorPool in class edu.stanford.nlp.simple.Document | From | To | |
Rename Parameter | 1 | ||
Rename Parameter boundaryTokenRegex : String to name : String in method public tokensregex(properties Properties, name String) : Annotator in class edu.stanford.nlp.pipeline.AnnotatorImplementations | From | To |