docstr: Parameters
  ----------
  options_file : ``str``, optional
      A path or URL to an ELMo options file.
  weight_file : ``str``, optional
      A path or URL to an ELMo weights file.
  cuda_device : ``int``, optional, (default=-1)
      The GPU device to run on.
docstr_tok: ["Parameters","--","--","--","--","--","options_file",":","``","str","``",",","optional","A","path","or","URL","to","an","ELMo","options","file",".","weight_file",":","``","str","``",",","optional","A","path","or","URL","to","an","ELMo","weights","file",".","cuda_device",":","``","int","``",",","optional",",","(","default=-1",")","The","GPU","device","to","run","on","."]
code: def __init__(
      self,
      options_file=DEFAULT_OPTIONS_FILE,
      weight_file=DEFAULT_WEIGHT_FILE,
      cuda_device=-1,
  ):
      """
      Parameters
      ----------
      options_file : ``str``, optional
          A path or URL to an ELMo options file.
      weight_file : ``str``, optional
          A path or URL to an ELMo weights file.
      cuda_device : ``int``, optional, (default=-1)
          The GPU device to run on.
      """
      self.indexer = ELMoTokenCharactersIndexer()
  
      logger.info("Initializing ELMo.")
      self.elmo_bilm = _ElmoBiLm(options_file, weight_file)
      if cuda_device >= 0:
          self.elmo_bilm = self.elmo_bilm.cuda(device=cuda_device)
  
      self.cuda_device = cuda_device
  
imports: from __future__ import with_statement
  from __future__ import absolute_import
  import argparse
  import json
  import logging
  import os
  import warnings
  import numpy
  import torch
  from allennlp.common.tqdm import Tqdm
  from allennlp.common.util import lazy_groups_of, prepare_global_logging
  from allennlp.common.checks import ConfigurationError
  from allennlp.data.token_indexers.elmo_indexer import ELMoTokenCharactersIndexer
  from allennlp.nn.util import remove_sentence_boundaries
  from allennlp.modules.elmo import _ElmoBiLm, batch_to_ids
  from allennlp.commands.subcommand import Subcommand
label_desc: Use image node_id 1 to create a new ElmoEmbedder object from inherited base classes: object with example: obj = ElmoEmbedder(options_file, weight_file, cuda_device)