a25679afb85fa63fa729269752f36c400b516767
Files Diff
- Added: 16
- Removed: 1
- Renamed: 0
- Modified: 83
Refactorings reported:
Refactoring Name | Occurences | ||
---|---|---|---|
Move And Inline Method | 3 | ||
Move And Inline Method public load(is InputStream) : Annotation moved from class edu.stanford.nlp.pipeline.AnnotationSerializer to class edu.stanford.nlp.pipeline.CustomAnnotationSerializer & inlined to public main(args String[]) : void | From | To | |
Move And Inline Method public save(corpus Annotation, os OutputStream) : void moved from class edu.stanford.nlp.pipeline.AnnotationSerializer to class edu.stanford.nlp.pipeline.CustomAnnotationSerializer & inlined to public main(args String[]) : void | From | To | |
Move And Inline Method public load(is InputStream) : Annotation moved from class edu.stanford.nlp.pipeline.AnnotationSerializer to class edu.stanford.nlp.pipeline.SerializedAnnotationCreator & inlined to public create(stream InputStream, encoding String) : Annotation | From | To | |
Change Parameter Type | 3 | ||
Change Parameter Type previous : TreeShapedStack to previous : TreeShapedStack<T> in method private TreeShapedStack(previous TreeShapedStack<T>, data T, size int) in class edu.stanford.nlp.util.TreeShapedStack | From | To | |
Change Parameter Type ignoreCase : boolean to flags : int in method public StringAnnotationPattern(str String, flags int) in class edu.stanford.nlp.ling.tokensregex.CoreMapNodePattern.StringAnnotationPattern | From | To | |
Change Parameter Type ignoreCase : boolean to flags : int in method public StringInSetAnnotationPattern(targets Set<String>, flags int) in class edu.stanford.nlp.ling.tokensregex.CoreMapNodePattern.StringInSetAnnotationPattern | From | To | |
Move Attribute | 4 | ||
Move Attribute public featureFactory : RelationFeatureFactory from class edu.stanford.nlp.ie.machinereading.RelationExtractorProps to public featureFactory : RelationFeatureFactory from class edu.stanford.nlp.ie.machinereading.BasicRelationExtractor | From | To | |
Move Attribute public featureCountThreshold : int from class edu.stanford.nlp.ie.machinereading.RelationExtractorProps to public featureCountThreshold : int from class edu.stanford.nlp.ie.machinereading.BasicRelationExtractor | From | To | |
Move Attribute public relationExtractorClassifierType : String from class edu.stanford.nlp.ie.machinereading.RelationExtractorProps to public relationExtractorClassifierType : String from class edu.stanford.nlp.ie.machinereading.BasicRelationExtractor | From | To | |
Move Attribute public sigma : double from class edu.stanford.nlp.ie.machinereading.RelationExtractorProps to public sigma : double from class edu.stanford.nlp.ie.machinereading.BasicRelationExtractor | From | To | |
Extract Attribute | 1 | ||
Extract Attribute public DEFAULT_BACKGROUND_SYMBOL : String in class edu.stanford.nlp.pipeline.TokensRegexNERAnnotator | From | To | |
Change Variable Type | 4 | ||
Change Variable Type value : String to entry : Map.Entry<String,int[]> in method private simplifyLambda() : void in class edu.stanford.nlp.tagger.maxent.MaxentTagger | From | To | |
Change Variable Type item : Object to item : HasWord in method package addSentenceFinalPunctIfNeeded(sentence List<HasWord>, length int) : void in class edu.stanford.nlp.parser.lexparser.LexicalizedParserQuery | From | To | |
Change Variable Type relationExtractor : Extractor to relationExtractor : BasicRelationExtractor in method public RelationExtractorAnnotator(props Properties) in class edu.stanford.nlp.pipeline.RelationExtractorAnnotator | From | To | |
Change Variable Type afl : CoreLabel to afl : CoreMap in method public indexSpans(startIndex MutableInteger) : Pair<Integer,Integer> in class edu.stanford.nlp.trees.Tree | From | To | |
Extract Variable | 2 | ||
Extract Variable pattern : NodePattern<T> in method public findNodePattern(filter Function<NodePattern<T>,OUT>) : OUT from class edu.stanford.nlp.ling.tokensregex.SequencePattern | From | To | |
Extract Variable fis : FileInputStream in method public initializeAndRunCoref(props Properties) : String from class edu.stanford.nlp.dcoref.SieveCoreferenceSystem | From | To | |
Rename Method | 6 | ||
Rename Method public openFile(file File) : InputStream renamed to public inputStreamFromFile(file File) : InputStream in class edu.stanford.nlp.io.IOUtils | From | To | |
Rename Method public append(corpus Annotation, os OutputStream) : OutputStream renamed to public write(corpus Annotation, os OutputStream) : OutputStream in class edu.stanford.nlp.pipeline.GenericAnnotationSerializer | From | To | |
Rename Method public makeAnnotationFromNERTags(sentence CoreMap, nerTag String, entityType String) : void renamed to public makeAnnotationFromGivenNERTag(sentence CoreMap, nerTag String, entityType String) : void in class edu.stanford.nlp.ie.machinereading.BasicEntityExtractor | From | To | |
Rename Method public append(corpus Annotation, os OutputStream) : OutputStream renamed to public write(corpus Annotation, os OutputStream) : OutputStream in class edu.stanford.nlp.pipeline.CustomAnnotationSerializer | From | To | |
Rename Method public abstract append(corpus Annotation, os OutputStream) : OutputStream renamed to public abstract write(corpus Annotation, os OutputStream) : OutputStream in class edu.stanford.nlp.pipeline.AnnotationSerializer | From | To | |
Rename Method private jj_ntk_f() : int renamed to private jj_ntk() : int in class edu.stanford.nlp.ling.tokensregex.parser.TokenSequenceParser | From | To | |
Rename Variable | 1 | ||
Rename Variable value : String to entry : Map.Entry<String,int[]> in method private simplifyLambda() : void in class edu.stanford.nlp.tagger.maxent.MaxentTagger | From | To | |
Change Return Type | 2 | ||
Change Return Type TreeShapedStack to TreeShapedStack<T> in method public push(data T) : TreeShapedStack<T> in class edu.stanford.nlp.util.TreeShapedStack | From | To | |
Change Return Type TreeShapedStack to TreeShapedStack<T> in method public pop() : TreeShapedStack<T> in class edu.stanford.nlp.util.TreeShapedStack | From | To | |
Extract Superclass | 1 | ||
Extract Superclass edu.stanford.nlp.ling.tokensregex.CoreMapNodePattern.AbstractStringAnnotationPattern from classes [edu.stanford.nlp.ling.tokensregex.CoreMapNodePattern.StringAnnotationPattern, edu.stanford.nlp.ling.tokensregex.CoreMapNodePattern.StringInSetAnnotationPattern] | From | To | |
Rename Attribute | 1 | ||
Rename Attribute keepAssimilations : boolean to splitAssimilations : boolean in class edu.stanford.nlp.process.PTBLexer | From | To | |
Change Attribute Type | 2 | ||
Change Attribute Type patternToEntry : Map<TokenSequencePattern,Entry> to patternToEntry : Map<SequencePattern<CoreMap>,Entry> in class edu.stanford.nlp.pipeline.TokensRegexNERAnnotator | From | To | |
Change Attribute Type previous : TreeShapedStack to previous : TreeShapedStack<T> in class edu.stanford.nlp.util.TreeShapedStack | From | To | |
Rename Parameter | 3 | ||
Rename Parameter ignoreCase : boolean to flags : int in method public StringInSetAnnotationPattern(targets Set<String>, flags int) in class edu.stanford.nlp.ling.tokensregex.CoreMapNodePattern.StringInSetAnnotationPattern | From | To | |
Rename Parameter featureFactory : RelationFeatureFactory to featureFac : RelationFeatureFactory in method public BasicRelationExtractor(featureFac RelationFeatureFactory, createUnrelatedRelations boolean, factory RelationMentionFactory) in class edu.stanford.nlp.ie.machinereading.BasicRelationExtractor | From | To | |
Rename Parameter ignoreCase : boolean to flags : int in method public StringAnnotationPattern(str String, flags int) in class edu.stanford.nlp.ling.tokensregex.CoreMapNodePattern.StringAnnotationPattern | From | To |