test_class.declarator: parser = new OpenNLPParser()
test_class.modifier: private static final
test_class.original_string: private static final OpenNLPParser parser = new OpenNLPParser();
test_class.type: OpenNLPParser
test_class.var_name: parser
test_class.file: dialog/src/test/java/roboy/linguistics/sentenceanalysis/OpenNLPParserTest.java
test_class.identifier: OpenNLPParserTest
test_case.body: @SuppressWarnings("unchecked")
  	@Test
  	public void testWhereWas() {
  		Interpretation interpretation = new Interpretation("Where was Putin born ?");
  		interpretation = parser.analyze(interpretation);
  		Map<SemanticRole, String> pas = interpretation.getPas();
  		assertEquals("born", pas.get(SemanticRole.PREDICATE));
  		assertEquals("Putin", pas.get(SemanticRole.PATIENT));
  		assertEquals("Where", pas.get(SemanticRole.LOCATION));
  	}
test_case.class_method_signature: OpenNLPParserTest.testWhereWas()
test_case.full_signature: @SuppressWarnings("unchecked") @Test public void testWhereWas()
test_case.identifier: testWhereWas
test_case.invocations: analyze getPas assertEquals get assertEquals get assertEquals get
test_case.modifiers: @SuppressWarnings("unchecked") @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testWhereWas()
focal_class.declarator: parser
focal_class.modifier: private
focal_class.original_string: private Parser parser;
focal_class.type: Parser
focal_class.var_name: parser
focal_class.file: dialog/src/main/java/roboy/linguistics/sentenceanalysis/OpenNLPParser.java
focal_class.identifier: OpenNLPParser
focal_class.interfaces: implements Analyzer
focal_class.class_method_signature: OpenNLPParser.OpenNLPParser()
focal_class.full_signature: public  OpenNLPParser()
focal_class.identifier: OpenNLPParser
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.signature:  OpenNLPParser()
focal_class.class_method_signature: OpenNLPParser.analyze(Interpretation interpretation)
focal_class.full_signature: @Override public Interpretation analyze(Interpretation interpretation)
focal_class.identifier: analyze
focal_class.modifiers: @Override public
focal_class.parameters: (Interpretation interpretation)
focal_class.return: Interpretation
focal_class.signature: Interpretation analyze(Interpretation interpretation)
focal_class.class_method_signature: OpenNLPParser.extractPAS(Interpretation interpretation, Parse parse)
focal_class.full_signature: private Interpretation extractPAS(Interpretation interpretation, Parse parse)
focal_class.identifier: extractPAS
focal_class.modifiers: private
focal_class.parameters: (Interpretation interpretation, Parse parse)
focal_class.return: Interpretation
focal_class.signature: Interpretation extractPAS(Interpretation interpretation, Parse parse)
focal_class.class_method_signature: OpenNLPParser.top(Parse parse, Map<SemanticRole, String> result)
focal_class.full_signature: private Map<SemanticRole, String> top(Parse parse, Map<SemanticRole, String> result)
focal_class.identifier: top
focal_class.modifiers: private
focal_class.parameters: (Parse parse, Map<SemanticRole, String> result)
focal_class.return: Map<SemanticRole, String>
focal_class.signature: Map<SemanticRole, String> top(Parse parse, Map<SemanticRole, String> result)
focal_class.class_method_signature: OpenNLPParser.sbar(Parse parse, Map<SemanticRole, String> result)
focal_class.full_signature: private Map<SemanticRole, String> sbar(Parse parse, Map<SemanticRole, String> result)
focal_class.identifier: sbar
focal_class.modifiers: private
focal_class.parameters: (Parse parse, Map<SemanticRole, String> result)
focal_class.return: Map<SemanticRole, String>
focal_class.signature: Map<SemanticRole, String> sbar(Parse parse, Map<SemanticRole, String> result)
focal_class.class_method_signature: OpenNLPParser.vp(Parse parse, Map<SemanticRole, String> result)
focal_class.full_signature: private Map<SemanticRole, String> vp(Parse parse, Map<SemanticRole, String> result)
focal_class.identifier: vp
focal_class.modifiers: private
focal_class.parameters: (Parse parse, Map<SemanticRole, String> result)
focal_class.return: Map<SemanticRole, String>
focal_class.signature: Map<SemanticRole, String> vp(Parse parse, Map<SemanticRole, String> result)
focal_class.class_method_signature: OpenNLPParser.parseToString(Parse parse, int offset)
focal_class.full_signature: public StringBuilder parseToString(Parse parse, int offset)
focal_class.identifier: parseToString
focal_class.modifiers: public
focal_class.parameters: (Parse parse, int offset)
focal_class.return: StringBuilder
focal_class.signature: StringBuilder parseToString(Parse parse, int offset)
focal_class.class_method_signature: OpenNLPParser.main(String[] args)
focal_class.full_signature: public static void main(String[] args)
focal_class.identifier: main
focal_class.modifiers: public static
focal_class.parameters: (String[] args)
focal_class.return: void
focal_class.signature: void main(String[] args)
focal_method.body: @Override
  	public Interpretation analyze(Interpretation interpretation) {
  		String sentence = interpretation.getSentence();
  		if (sentence != null) {
  			sentence = sentence.trim();
  			if (!sentence.endsWith(".")
  					&& !sentence.endsWith("?")
  					&& !sentence.endsWith("!")) {
  				sentence = sentence + " .";
  			}
  			if (sentence.length() > 0 && Character.isLowerCase(sentence.charAt(0))) {
  				sentence = Character.toUpperCase(sentence.charAt(0)) + sentence.substring(1, sentence.length());
  			}
  			Parse parse = ParserTool.parseLine(sentence, parser, 1)[0];
  			interpretation = extractPAS(interpretation, parse);
  		}
  		return interpretation;
  	}
focal_method.class_method_signature: OpenNLPParser.analyze(Interpretation interpretation)
focal_method.full_signature: @Override public Interpretation analyze(Interpretation interpretation)
focal_method.identifier: analyze
focal_method.invocations: getSentence trim endsWith endsWith endsWith length isLowerCase charAt toUpperCase charAt substring length parseLine extractPAS
focal_method.modifiers: @Override public
focal_method.parameters: (Interpretation interpretation)
focal_method.return: Interpretation
focal_method.signature: Interpretation analyze(Interpretation interpretation)