MCPcopy Create free account
hub / github.com/antlr/codebuff / computeFeatureVectors

Method computeFeatureVectors

src/org/antlr/codebuff/Trainer.java:238–245  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

236 }
237
238 public void computeFeatureVectors() {
239 List<Token> realTokens = getRealTokens(tokens);
240
241 for (int i = ANALYSIS_START_TOKEN_INDEX; i<realTokens.size(); i++) { // can't process first token
242 int tokenIndexInStream = realTokens.get(i).getTokenIndex();
243 computeFeatureVectorForToken(tokenIndexInStream);
244 }
245 }
246
247 public void computeFeatureVectorForToken(int i) {
248 Token curToken = tokens.get(i);

Callers 1

trainOnSampleDocsMethod · 0.95

Calls 5

getRealTokensMethod · 0.95
getTokenIndexMethod · 0.80
sizeMethod · 0.65
getMethod · 0.65

Tested by

no test coverage detected