public void ProcessAnnotations(AnnotationArgs args) { //This is where we are going to look at the annotation library //to learn from the examples. try { List <Ptype> lib = new List <Ptype>(); bool needsUpdate = ptypeUtil.UpdatePtypes(args.AnnotatedNodes, lib); if (needsUpdate) { shared[SHARED_PTYPES_KEY] = lib; featureTree = FeatureTree.FeatureTree.BuildTree(GetFeatures(lib)); } } catch (Exception e) { Console.WriteLine(e.StackTrace); } }