4705aeb078a90ba74cd4ee2bc7cbbf741954d749
Files Diff
- Added: 5
- Removed: 1
- Renamed: 0
- Modified: 11
Refactorings reported:
Refactoring Name | Occurences | ||
---|---|---|---|
Change Parameter Type | 3 | ||
Change Parameter Type label : String to label : SentimentClass in method private imdb(path String, label SentimentClass) : Stream<SentimentDatum> in class edu.stanford.nlp.sentiment.SimpleSentiment | From | To | |
Change Parameter Type sentiment : String to sentiment : SentimentClass in method private SentimentDatum(sentence String, sentiment SentimentClass) in class edu.stanford.nlp.sentiment.SimpleSentiment.SentimentDatum | From | To | |
Change Parameter Type impl : Classifier<String,String> to impl : Classifier<SentimentClass,String> in method private SimpleSentiment(impl Classifier<SentimentClass,String>) in class edu.stanford.nlp.sentiment.SimpleSentiment | From | To | |
Change Return Type | 2 | ||
Change Return Type String to SentimentClass in method public classify(sentence CoreMap) : SentimentClass in class edu.stanford.nlp.sentiment.SimpleSentiment | From | To | |
Change Return Type String to SentimentClass in method public classify(text String) : SentimentClass in class edu.stanford.nlp.sentiment.SimpleSentiment | From | To | |
Rename Class | 1 | ||
Rename Class edu.stanford.nlp.ling.ChineseCoreAnnotations renamed to edu.stanford.nlp.ling.SegmenterCoreAnnotations | From | To | |
Change Variable Type | 6 | ||
Change Variable Type dataset : RVFDataset<String,String> to dataset : RVFDataset<SentimentClass,String> in method public train(data Stream<SentimentDatum>, modelLocation Optional<OutputStream>) : SimpleSentiment in class edu.stanford.nlp.sentiment.SimpleSentiment | From | To | |
Change Variable Type classifier : LinearClassifier<String,String> to classifier : LinearClassifier<SentimentClass,String> in method public train(data Stream<SentimentDatum>, modelLocation Optional<OutputStream>) : SimpleSentiment in class edu.stanford.nlp.sentiment.SimpleSentiment | From | To | |
Change Variable Type factory : LinearClassifierFactory<String,String> to factory : LinearClassifierFactory<SentimentClass,String> in method public train(data Stream<SentimentDatum>, modelLocation Optional<OutputStream>) : SimpleSentiment in class edu.stanford.nlp.sentiment.SimpleSentiment | From | To | |
Change Variable Type datum : RVFDatum<String,String> to datum : RVFDatum<SentimentClass,String> in method public classify(text String) : SentimentClass in class edu.stanford.nlp.sentiment.SimpleSentiment | From | To | |
Change Variable Type trainTest : Pair<GeneralDataset<String,String>,GeneralDataset<String,String>> to trainTest : Pair<GeneralDataset<SentimentClass,String>,GeneralDataset<SentimentClass,String>> in method public train(data Stream<SentimentDatum>, modelLocation Optional<OutputStream>) : SimpleSentiment in class edu.stanford.nlp.sentiment.SimpleSentiment | From | To | |
Change Variable Type datum : RVFDatum<String,String> to datum : RVFDatum<SentimentClass,String> in method public classify(sentence CoreMap) : SentimentClass in class edu.stanford.nlp.sentiment.SimpleSentiment | From | To | |
Change Attribute Type | 2 | ||
Change Attribute Type impl : Classifier<String,String> to impl : Classifier<SentimentClass,String> in class edu.stanford.nlp.sentiment.SimpleSentiment | From | To | |
Change Attribute Type sentiment : String to sentiment : SentimentClass in class edu.stanford.nlp.sentiment.SimpleSentiment.SentimentDatum | From | To |