963964965966967968969970971972973
{ compilerContext.createDependency(td); } else { compilerContext.createDependency(dependent, td); } } } /**
110111112113114115116117118119120
BayesianEvent spamEvent = network.createEvent("spam"); int index = 0; for( String word: words) { BayesianEvent event = network.createEvent(word+index); network.createDependency(spamEvent, event); index++; } network.finalizeStructure();