public boolean add(String source,String target,String align){
  AlignedSentence s=getSentence(source,target,align);
  if (s == null) {
    logger.warn("Cannot add unaligned sentence to corpus: {} ||| {} ||| {}",source,target,align);
    return false;
  }
 else {
    segments.add(s);
    return true;
  }
}

public boolean add ( String source , String target , String align ) { AlignedSentence s = getSentence ( source , target , align ) ; if ( s == null ) { logger . warn ( "Cannot add unaligned sentence to corpus: {} ||| {} ||| {}" , source , target , align ) ; return false ; } else { segments . add ( s ) ; return true ; } }
add an aligned sentence to the corpus .
