From e50d721bff81592208f3e08fb695acacef65b845 Mon Sep 17 00:00:00 2001 From: parrt Date: Fri, 1 Apr 2016 12:52:08 -0700 Subject: [PATCH] rm start of list feature, find alignment with rule delta, child index rather than finding "is element of list" etc... simplified code. The corpus cache should only use ruleIndex not ruleIndex:altNum as it is too restrictive. --- java/codebuff.ipr | 18 + .../org/antlr/codebuff/CollectFeatures.java | 327 +++++++----------- java/src/org/antlr/codebuff/Corpus.java | 4 +- java/src/org/antlr/codebuff/Formatter.java | 83 ++--- .../src/org/antlr/codebuff/InputDocument.java | 5 +- java/src/org/antlr/codebuff/Neighbor.java | 9 +- java/src/org/antlr/codebuff/TokenContext.java | 34 -- .../antlr/codebuff/TokenPositionAnalysis.java | 3 - java/src/org/antlr/codebuff/Tool.java | 34 +- .../org/antlr/codebuff/gui/GUIController.java | 3 +- .../src/org/antlr/codebuff/kNNClassifier.java | 36 +- 11 files changed, 210 insertions(+), 346 deletions(-) delete mode 100644 java/src/org/antlr/codebuff/TokenContext.java diff --git a/java/codebuff.ipr b/java/codebuff.ipr index 362a0ed..973d476 100644 --- a/java/codebuff.ipr +++ b/java/codebuff.ipr @@ -37,6 +37,24 @@ + + + +