private static List<? extends SyntacticRealization> asRealizations(List<String> sentences)
{
List<JeniRealization> ret = new ArrayList<JeniRealization>();
for(String sentence : sentences)
{
JeniRealization synReal = new JeniRealization();
MorphRealization morphReal = new MorphRealization();
synReal.setMorphRealizations(Collections.singleton(morphReal));
for(String lemma : sentence.split(" "))
{
synReal.add(new Lemma(lemma));
morphReal.add(new Lexem(lemma));
}
ret.add(synReal);
}
return ret;