(self, output_vocab, ignore_symbols=['<unk>', '<pad>'])
Parameters:
            output_vocab: Instance of torchtext.Vocab
            ignore_symbols: List of symbols to ignore while calculating symbol accuracy
                            e.g. padding, unknown etc
Parameters:
            output_vocab: Instance of torchtext.Vocab
            ignore_symbols: List of symbols to ignore while calculating symbol accuracy
                            e.g. padding, unknown etc
Parameters : output_vocab : Instance of torchtext . Vocab ignore_symbols : List of symbols to ignore while calculating symbol accuracy e . g . padding unknown etc
def __init__(self, output_vocab, ignore_symbols=['<unk>', '<pad>']):
        """
        Parameters:
            output_vocab: Instance of torchtext.Vocab
            ignore_symbols: List of symbols to ignore while calculating symbol accuracy
                            e.g. padding, unknown etc
        """
        self.ignore_ids = [output_vocab.stoi[s] for s in (ignore_symbols or [])]
def __init__ ( self , output_vocab , ignore_symbols = [ '<unk>' , '<pad>' ] ) : self . ignore_ids = [ output_vocab . stoi [ s ] for s in ( ignore_symbols or [ ] ) ]