software/test/performance/src/org/LexGrid/LexBIG/example/MetaMatch.java
/**
	 * Print code and text for all text presentations associated
	 * with the given concept reference.  If specified, the given words
	 * are compared against each printed presentation according to the
	 * chosen match option.  Match option of 1 indicates to match at
	 * least one word; match option of 2 indicates a presentation
	 * must match all words.
	 * @param ref
	 * @param matchWords
	 * @param matchOption
	 */
Print code and text for all text presentations associated
with the given concept reference.  If specified, the given words
are compared against each printed presentation according to the
chosen match option.  Match option of 1 indicates to match at
least one word; match option of 2 indicates a presentation
must match all words.
Print code and text for all text presentations associated with the given concept reference . If specified the given words are compared against each printed presentation according to the chosen match option . Match option of 1 indicates to match at least one word ; match option of 2 indicates a presentation must match all words .
protected void printText(ResolvedConceptReference ref, String[] matchWords, int matchOption) {
		Concept concept = ref.getReferencedEntry();
		Set<String> presentations = new HashSet<String>();
		for (int j = 0; j < concept.getPresentationCount(); j++)
			presentations.add(concept.getPresentation(j).getText().getContent());
		String code = "\t[" + ref.getConceptCode() + ']';
		for (Iterator<String> strings = presentations.iterator(); strings.hasNext(); ) {
			String term = strings.next();
			final List<String> words = Arrays.asList(matchWords);
			float weight = getTextWeight(term, words);
			if (matchOption == 1 && weight > 0 || matchOption == 2 && weight == 1)
				Util.displayMessage(code + term);
		}
	}
protected void printText ( ResolvedConceptReference ref , String [ ] matchWords , int matchOption ) { Concept concept = ref . getReferencedEntry ( ) ; Set < String > presentations = new HashSet < String > ( ) ; for ( int j = 0 ; j < concept . getPresentationCount ( ) ; j ++ ) presentations . add ( concept . getPresentation ( j ) . getText ( ) . getContent ( ) ) ; String code = "\t[" + ref . getConceptCode ( ) + ']' ; for ( Iterator < String > strings = presentations . iterator ( ) ; strings . hasNext ( ) ; ) { String term = strings . next ( ) ; final List < String > words = Arrays . asList ( matchWords ) ; float weight = getTextWeight ( term , words ) ; if ( matchOption == 1 && weight > 0 || matchOption == 2 && weight == 1 ) Util . displayMessage ( code + term ) ; } }
Print code and text for all text presentations associated
 with the given concept reference.
Print code and text for all text presentations associated with the given concept reference .
// Identify the unique set of text presentations;
 // avoid duplicate registration by multiple sources, etc ...
 // Print matching results
