class_docstr: Lexicon component that stores the k most likely target words for each source word.  Used during
  decoding to restrict target vocabulary for each source sequence.
  
  :param vocab_source: Trained model source vocabulary.
  :param vocab_target: Trained mode target vocabulary.
class_docstr_tok: ["Lexicon","component","that","stores","the","k","most","likely","target","words","for","each","source","word",".","Used","during","decoding","to","restrict","target","vocabulary","for","each","source","sequence",".",":","param","vocab_source",":","Trained","model","source","vocabulary",".",":","param","vocab_target",":","Trained","mode","target","vocabulary","."]
code: def requires_src_ids(self):
      return True
  
imports: import argparse
  import collections
  import os
  import sys
  import time
  import logging
  from itertools import groupby
  from operator import itemgetter
  from typing import Dict, Generator, List, Tuple, Optional
  from abc import abstractmethod, ABC
  import numpy
  from sockeye.data_io import SequenceReader
  from .None import arguments
  from .None import constants
  from .None import vocab
  from .utils import smart_open, get_tokens
  from .log import setup_main_logger, log_sockeye_version
label_desc: Use image node_id 5 for calling the TopKLexicon obj's underlying member method code with example usage: obj.requires_src_ids() and returns: True