hub icon indicating copy to clipboard operation
hub copied to clipboard

ELMo in other languages (Spanish)

Open alberduris opened this issue 7 years ago • 9 comments

ELMo module is available in English.

There are text embedding modules in other languages (basically NNLM in Spanish, German, Chinesse...)

It would be great if we could have ELMo in Spanish and other languages (like ELMoForManyLangs)

alberduris avatar Jan 08 '19 16:01 alberduris

Keeping open as a module request.

vbardiovskyg avatar Jan 09 '19 09:01 vbardiovskyg

Many thanks!

alberduris avatar Jan 09 '19 09:01 alberduris

@vbardiovskyg , Is it okay, if I work on this issue? or is there someone else working on this already?

captain-pool avatar Apr 06 '19 11:04 captain-pool

Hi Adrish, thanks for the application, we can move the discussion there.

vbardiovskyg avatar Apr 08 '19 07:04 vbardiovskyg

Hi @vbardiovskyg Thanks for the reply. I'm a bit confused. which application are you talking about?

captain-pool avatar Apr 08 '19 09:04 captain-pool

Hi Adrish, I meant the GSoC proposal, but I see now that it is not about ELMo. Sorry for confusion.

I don't think anybody is working on this at the moment, so feel free to do so :)

vbardiovskyg avatar Apr 09 '19 08:04 vbardiovskyg

@vbardiovskyg , I'm trying to export the ELMo Graph from torch to ONNX and Then form a TF Graph from it. However, torch.onnx.export says ONNX export failed: Couldn't export operator aten::sort. According to Pytorch, There's no support for aten::sort, right now. (https://github.com/pytorch/pytorch/issues/17519#issuecomment-471638973) Can you suggest some work around?

captain-pool avatar Apr 11 '19 15:04 captain-pool

Hi Adrish, I don't actually have much experience with exporting Pytorch models to ONNX.

If I understand correctly, on the path Pytorch -> ONNX -> TensorFlow, this fails on the first step? Then it would be a question for the ONNX exporting tool project.

A very general answer would be: could you try to understand why that operator is used in the model and whether it could be replaced by something else or dropped? Not sure why one would depend on sorting.

vbardiovskyg avatar Apr 12 '19 12:04 vbardiovskyg

Hi @alberduris - if you haven't seen this already, we've added many text embedding models in different languages over the years since this comment was left (although ELMo is not one of them) -- you can take a look here & use the left hand filter to select for the languages you'd like: https://tfhub.dev/s?subtype=module,placeholder

j-grimstad avatar Jun 09 '21 12:06 j-grimstad