switch (mode)
{
case NLPMode.MODE_POS : return new POSDeveloper();
case NLPMode.MODE_DEP : return new DEPDeveloper();
case NLPMode.MODE_PRED: return new PredDeveloper();
case NLPMode.MODE_ROLE: return new RoleDeveloper();
case NLPMode.MODE_SRL : return new SRLDeveloper();
}
throw new IllegalArgumentException("The requested mode '"+mode+"' is not supported.");
}