class_docstr: Base class to be inherited by all decoding strategies. Contains
  implementations that are common for all strategies.
  
  Args:
      vocab (list): Collection of all words in vocabulary.
class_docstr_tok: ["Base","class","to","be","inherited","by","all","decoding","strategies",".","Contains","implementations","that","are","common","for","all","strategies",".","Args",":","vocab","(","list",")",":","Collection","of","all","words","in","vocabulary","."]
code: def find_complete_inds(self, next_word_inds):
      incomplete_inds = []
      for ind, next_word in enumerate(next_word_inds):
          if next_word != self._vocab.EOS_INDEX:
              incomplete_inds.append(ind)
      complete_inds = list(
          set(range(len(next_word_inds))) - set(incomplete_inds)
      )
      return complete_inds, incomplete_inds
  
imports: import os
  import re
  from collections import Counter
  from itertools import chain
  import torch
  from mmf.common.registry import registry
  from mmf.utils.file_io import PathManager
  from mmf.utils.general import get_absolute_path
label_desc: Use image node_id 4 for calling the TextDecoder obj's underlying member method code with example usage: obj.find_complete_inds(next_word_inds) and returns: complete_inds,  incomplete_inds