00001 import edu.tum.cs.srl.bayesnets.BLOGModel; 00002 00003 00004 public class groundBLOG { 00005 00009 public static void main(String[] args) { 00010 try { 00011 if(args.length < 2) { 00012 System.out.println("\n usage: groundBLOG <BLOG file(s), comma-separated> <XML-BIF file> [-g]\n\n" + 00013 " -g guess signatures from network structure rather than obtaining them from the BLOG file(s)\n"); 00014 return; 00015 } 00016 BLOGModel b = new BLOGModel(args[0].split(","), args[1]); 00017 if(args.length >= 3 && args[2].equals("-g")) 00018 b.guessSignatures(); 00019 b.getGroundBN().show(); 00020 } 00021 catch(Exception e) { 00022 e.printStackTrace(); 00023 } 00024 } 00025 }