package com.grayben.riskExtractor.htmlScorer;

public class ScoredTextElement {
	String text = null;
	int emphasisScore = 0;
	int segregationScore = 0;
	
	public ScoredTextElement(String text, int emphasisScore, int segregationScore) {
		super();
		this.text = text;
		this.emphasisScore = emphasisScore;
		this.segregationScore = segregationScore;
	}
	public ScoredTextElement() {
		super();
	}
	public String getText() {
		return text;
	}
	public void setText(String text) {
		this.text = text;
	}
	public int getEmphasisScore() {
		return emphasisScore;
	}
	public void setEmphasisScore(int emphasisScore) {
		this.emphasisScore = emphasisScore;
	}
	public int getSegregationScore() {
		return segregationScore;
	}
	public void setSegregationScore(int segregationScore) {
		this.segregationScore = segregationScore;
	}
	
	@Override
	public String toString() {
		return "ScoredTextElement [text=" + text + ", emphasisScore=" + emphasisScore + ", segregationScore="
				+ segregationScore + "]";
	}
	
	

}

@@ -40,16 +40,65 @@
 corer;%0A%0A
+import java.util.HashMap;%0Aimport java.util.Map;%0A%0A
 public c
@@ -148,56 +148,75 @@
 l;%0A%09
-int emphasisS
+Map%3CString, Integer%3E s
 core
+s
  = 
-0;%0A%09int segregationScore = 0
+new HashMap%3CString, Integer%3E(8, 0.5f)
 ;%0A%09%0A
@@ -258,47 +258,35 @@
 xt, 
-int emphasisScore, int segregationS
+Map%3CString, Integer%3E s
 core
+s
 ) %7B%0A
@@ -327,86 +327,30 @@
 his.
-emphasisScore = emphasisScore;%0A%09%09this.segregationScore = segregationS
+scores = s
 core
+s
 ;%0A%09%7D%0A
+%09%0A
 %09pub
@@ -385,24 +385,26 @@
 super();%0A%09%7D%0A
+%09%0A
 %09public Stri
@@ -441,569 +441,74 @@
 %09%7D%0A%09
-public void setText(String text) %7B%0A%09%09this.text = text;%0A%09%7D%0A%09public int getEmphasisScore() %7B%0A%09%09return emphasisScore;%0A%09%7D%0A%09public void setEmphasisScore(int emphasisScore) %7B%0A%09%09this.emphasisScore = emphasisScore;%0A%09%7D%0A%09public int getSegregationScore() %7B%0A%09%09return segregationScore;%0A%09%7D%0A%09public void setSegregationScore(int segregationScore) %7B%0A%09%09this.segregationScore = segregationScore;%0A%09%7D%0A%09%0A%09@Override%0A%09public String toString() %7B%0A%09%09return %22ScoredTextElement %5Btext=%22 + text + %22, emphasisScore=%22 + emphasisScore + %22, segregationScore=%22%0A%09%09%09%09+ segregationScore + %22%5D%22
+%0A%09%0A%09public Map%3CString, Integer%3E getScores() %7B%0A%09%09return scores
 ;%0A%09%7D%0A%09%0A
-%09%0A%0A
 %7D%0A

Reimplement ScoredTextElement