MCPcopy Create free account
hub / github.com/LL4J/Filter4J / tokenize

Method tokenize

src/filter/Tokenizer.java:27–35  ·  view source on GitHub ↗
(String text)

Source from the content-addressed store, hash-verified

25 }
26
27 public double[] tokenize(String text) {
28 double[] values = new double[vocab.length];
29 for (int i = 0; i < values.length; i++) {
30 if (text.contains(vocab[i])) {
31 values[i] = 1;
32 }
33 }
34 return values;
35 }
36}

Callers 1

isIllegalMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected