package semanticMarkup.ling.learn;

import org.junit.Test;
import static org.junit.Assert.assertEquals;

import java.util.ArrayList;
//import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Set;

import semanticMarkup.core.Treatment;
import semanticMarkup.ling.learn.UnsupervisedClauseMarkup;

public class UnsupervisedClauseMarkupTest {
	
	@Test
	public void testUnsupervisedClauseMarkup() {
		String str = "Users/nescent/Phenoscape/TEST2/target/descriptions";
		List<Treatment> treatments_l = new ArrayList<Treatment>();
				
		UnsupervisedClauseMarkup tester = new UnsupervisedClauseMarkup(str,"biocreative2012","plain","test");
		assertEquals("Result", null, tester.getAdjNouns());
		assertEquals("Result", null, tester.getAdjNounSent());
		assertEquals("Result", null, tester.getBracketTags());
		assertEquals("Result", null, tester.getHeuristicNouns());
		assertEquals("Result", null, tester.getRoleToWords());
		assertEquals("Result", null, tester.getSentences());
		assertEquals("Result", null, tester.getSentencesForOrganStateMarker());
		assertEquals("Result", null, tester.getSentenceTags());
		assertEquals("Result", null, tester.getTermCategories());
		assertEquals("Result", null, tester.getWordRoleTags());
		assertEquals("Result", null, tester.getWordsToRoles());
		assertEquals("Result", null, tester.getWordToSources());

		
		
	}
}

@@ -318,16 +318,65 @@
 eMarkup;
+%0Aimport semanticMarkup.ling.learn.SentenceLoader;
 %0A%0Apublic
@@ -484,16 +484,17 @@
  str = %22
+/
 Users/ne
@@ -1415,16 +1415,450 @@
 ces());%0A
+%09%09assertEquals(%22Result%22, true, tester.populatesents());%0A%09%09%0A%09%09SentenceLoader sentLoader = new SentenceLoader(str);%0A%09%09sentLoader.load();%0A%09%09sentLoader.getUnknownWordList();%0A%09%09//assertEquals(%22Result%22, 1, sentLoader.GetType(%22Buckup_1998.xml_5c157037-01e4-4d48-8014-b1ebfc9dc120_8210ee00-8026-4fd9-974f-2f4cf6ce389f.txt%22));%0A%09%09//assertEquals(%22Result%22, 0, sentLoader.GetType(%22Buckup_1998.xml_8d819b51-b88a-459e-bcb2-c6137d8b95d7.txt%22));%0A%09%09%0A%09%09
 %0A%09%09%0A%09%09%0A%09

test sentenceLoader.