public float getTokenScore() {String termText = termAtt.toString();WeightedTerm queryTerm = termsToFind.get(termText);if (queryTerm == null) {return 0;}if (!uniqueTermsInFragment.contains(termText)) {totalScore += queryTerm.getWeight();uniqueTermsInFragment.add(termText);}return queryTerm.getWeight();}

public float getTokenScore ( ) { String termText = termAtt . toString ( ) ; WeightedTerm queryTerm = termsToFind . get ( termText ) ; if ( queryTerm == null ) { return 0 ; } if ( ! uniqueTermsInFragment . contains ( termText ) ) { totalScore += queryTerm . getWeight ( ) ; uniqueTermsInFragment . add ( termText ) ; } return queryTerm . getWeight ( ) ; }
public virtual float GetTokenScore(){string termText = termAtt.ToString();WeightedTerm queryTerm;if (!termsToFind.TryGetValue(termText, out queryTerm) || queryTerm == null){return 0;}if (!uniqueTermsInFragment.Contains(termText)){totalScore += queryTerm.Weight;uniqueTermsInFragment.Add(termText);}return queryTerm.Weight;}
