public void addRule ( IntDependency dependency , double count ) { if ( ! directional ) { dependency = new IntDependency ( dependency . head , dependency . arg , false , dependency . distance ) ; } if ( verbose ) System . err . println ( "Adding dep " + dependency ) ; // coreDependencies.incrementCount(dependency, count); /*new IntDependency(dependency.head.word, dependency.head.tag, dependency.arg.word, dependency.arg.tag, dependency.leftHeaded, dependency.distance), count); */ expandDependency ( dependency , count ) ; // System.err.println("stopCounter: " + stopCounter); // System.err.println("argCounter: " + argCounter); }
Add this dependency with the given count to the grammar . This is the main entry point of MLEDependencyGrammarExtractor . This is a dependency represented in the full tag space .