-
Notifications
You must be signed in to change notification settings - Fork 2.2k
how to set vocabulary (from another model) from a config file allennlp #4374
Comments
I don't know whether it's possible to build from an external file, but if the words are unique, then you can read the external vocabulary using
|
@semerekiros Yes, it is, but I guess you could find a workaround:
Let me know whether it works. It's a bit dirty. As far as I remember this discussion relates to the following topic, so you can see there is some work ongoing - #3097 |
@mateuszpieniak . The following adjustment in the config file did the job for me. "vocabulary": { } Setting the "type" : "from_files" or "from_instances" raised an error. But the above snippet seems to work. Thank you for your help. |
Is it possible to do this from a single file? |
Hi I am new to allennlp. Instead of building my Vocabulary from instances which is the default implementation, I would like to build it from an external file that contains a list of words. What do I need to change in the config file?
The text was updated successfully, but these errors were encountered: