Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can you please explain more thoroughly how to use? #1

Open
johnearnshaw opened this issue Nov 5, 2015 · 5 comments
Open

Can you please explain more thoroughly how to use? #1

johnearnshaw opened this issue Nov 5, 2015 · 5 comments

Comments

@johnearnshaw
Copy link

I'm trying the ConsoleApp project and args -train questions-words.txt -output output.txt

I get a FileNotFoundException filename "output"

at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)
at System.IO.File.Open(String path, FileMode mode, FileAccess access)
at Word2Vec.Net.Distance.InitVocub() in Word2Vec.Net-master\Word2Vec.Net\Distance.cs:line 115

I remove the .txt from output and re-run and get an OverflowException

Arithmetic operation resulted in an overflow.

at Word2Vec.Net.Distance.InitVocub() in Word2Vec.Net-master\Word2Vec.Net\Distance.cs:line 124

@eabdullin
Copy link
Owner

Hi, John! There is old version of Word2Vec implementation. I'll push the update very soon. i think, in a few days. Generally you must set input and output filenames.
Word2VecBuilder.Create()
.WithTrainFile("trainingFile.txt")
.WithOutputFile("outputFile.txt")
.Build();

@johnearnshaw
Copy link
Author

awesome :) Is the project still pure C#? I noticed some c and compiled libraries in the dev branch

@kvasnyj
Copy link

kvasnyj commented Jan 5, 2016

Johnearnshaw,
The exception with following code:
var distance = new Distance("output");

You must specify a path to the output file instead of "output" arg.

@syedmohsinbukhari
Copy link

Hi, this is an awesome project. Can you please add function that helps us extract the vector of a word directly? or is there already a function in there that I am missing?

Thanks for this Word2Vec implementation in C#

@eabdullin
Copy link
Owner

@syedmohsinbukhari, to be honest i don't understand. Can you explain what do you mean?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants