Closed antgr closed 4 years ago
@alanakbik I have a difficulty on combining flair with regular pytorch. I think that there is a barrier between the two, and I wonder how I could use them together. Is this discouraged?
@antgr Have you been successful in combining flair with regular pytorh? I'm trying to do the same!
Hi @Edresson , I hope you are well! Here is the best and only approach I have for this: https://github.com/pytorch/text/issues/650
@antgr Thanks for the answer :).
Did you encounter any problems with contextual embeddings on the flair?
I believe that this approach will work well for the glove but I'm not sure if it will work with contextual embeddings (the same word will have 2 different embeddings depending on the context)
@Edresson I didn't even try it. I used transformers instead. Maybe I will come back to this in the future. But I believe that it will work, because it will substitute the word with one of the choices based on the context as you said.
@tabergma @alanakbik @pommedeterresautee @stefan-it @yahshibu is there any way to combine flair with torchtext/nn.Embeddings?
We need a simple example of integration between flair and pytorch !! I believe that would be welcome. Like me and @antgr many others would like to integrate Flair into their pytorch application. But at the moment it seems difficult.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Hi, we can use glove embedding when building vocab, using something like:
We also can create embeddings using flair library, using for example:
Could I use the above embeddings from flair instead of glove in the above code?