/*
 * Copyright 2008 Novamente LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package relex.wsd;

import relex.RelexInfo;
import relex.stats.SimpleTruthValue;

/**
 * Experimental word-sense disambiguation code.
 */
public class WordSense
{
	public SimpleTruthValue wordSenseMatch(String word,
	                                       RelexInfo example,
	                                       RelexInfo target)
	{
		SimpleTruthValue stv = new SimpleTruthValue();

		return stv;
	}

} // end WordSense


@@ -611,16 +611,48 @@
 x.wsd;%0A%0A
+import relex.RelationExtractor;%0A
 import r
@@ -1012,21 +1012,529 @@
 ();%0A
-%0A%09%09return stv
+System.out.println(%22hello world%22);%0A%0A%09%09return stv;%0A%09%7D%0A%0A%09/**%0A%09 * Test/sample usage%0A%09 */%0A%0A%09public static void main(String%5B%5D args)%0A%09%7B%0A%09%09RelationExtractor re = new RelationExtractor(false);%0A%0A%09%09String example_sentence = %22I was fishing for an answer%22;%0A%09%09String target_sentence = %22We went on a fishing expedition.%22;%0A%0A%09%09RelexInfo ri_example = re.processSentence(example_sentence);%0A%09%09RelexInfo ri_target = re.processSentence(target_sentence);%0A%0A%09%09WordSense ws = new WordSense();%0A%09%09ws.wordSenseMatch(%22fishing%22, ri_example, ri_target)
 ;%0A%09%7D

add test case.