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

I didn't find " string outPath = "./out/" " . Where is the output file? #2

Closed
hfsugar opened this issue Apr 6, 2017 · 4 comments
Closed

Comments

@hfsugar
Copy link

hfsugar commented Apr 6, 2017

Where is the output file? I didn't find " string outPath = "./out/" " in your code. How to get the vectors of entities and relations. Thank you!

@THUCSTHanxu13
Copy link
Member

If you use the TensorFlow-TransX, "saver.save(sess, 'model.vec')" will output the vectors to the file "model.vec". ''' string outPath = "./out/" ''' is used in the another project Fast-TransX.

@hfsugar
Copy link
Author

hfsugar commented Apr 7, 2017

Thank you for your responding. I tried both TensorFlow-TransX and Fast-TransX. In TensorFlow-TransX, the mode.vec is in messy code. In Fast-TransX, I mkdir 'out' but it doesn't work, There is no output in the folder out.

@THUCSTHanxu13
Copy link
Member

Please send your code to me (cst_hanxu13@163.com), I will debug for you.

@THUCSTHanxu13
Copy link
Member

To get the information in the model.vec, you need use "tf.train.Saver().restore()", you get the concrete information from "https://www.tensorflow.org/api_docs/python/tf/train/Saver".

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

2 participants