loretoparisi / fasttext.js

FastText for Node.js
MIT License
192 stars 28 forks source link

INFO: Could not find files for the given pattern(s). #6

Closed vladikus10 closed 5 years ago

vladikus10 commented 6 years ago

I'm trying to run the module on Windows. When I try to initialize it like so:

const FastText = require('fasttext.js');

const fastText = new FastText({
    serializeTo: './model',
    trainFile: './train.txt'
});

I receive the error: INFO: Could not find files for the given pattern(s).. Yes, I definitely have a train.txt file in the same folder as index.js (where I execute this code). I even tried using path.join(__dirname, '/train.txt'), however I got the same result.

loretoparisi commented 6 years ago

@vladikus10 thanks to point this out. Let me check, I guess it could be a path separator issue that I have forgot somewhere.