You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$vectorizer = new TokenCountVectorizer(new WhitespaceTokenizer());
$samples = [
'Lorem ipsum dolor sit amet dolor',
'Mauris placerat ipsum dolor',
'Mauris diam eros fringilla diam',
];
// Build the dictionary.
$vectorizer->fit($samples);
// Transform the provided text samples into a vectorized list.
$test = $vectorizer->transform($samples);
var_dump($test); ===> null
The text was updated successfully, but these errors were encountered:
tested via the documentation on latest php-ml
var_dump($test); ===> null
The text was updated successfully, but these errors were encountered: