Skip to content

Instantly share code, notes, and snippets.

@tuxedocat
Last active November 7, 2017 02:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tuxedocat/20583f6076a39c7903977bd71788fab5 to your computer and use it in GitHub Desktop.
Save tuxedocat/20583f6076a39c7903977bd71788fab5 to your computer and use it in GitHub Desktop.
日本語のFastTextモデルを Torchtextで使いたかった.
from torchtext.vocab import Vectors
class JaFastText(Vectors):
def __init__(self, name=None, **kwargs):
super(JaFastText, self).__init__(name, url=None, **kwargs)
fasttext = JaFastText(name='model.vec')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment