code: def AddRawCountsFromLine(self, line):
      try:
          words = (
              [self.bos_symbol]
              + [int(x) for x in line.split()]
              + [self.eos_symbol]
          )
      except Exception:
          sys.exit(
              "make_phone_lm.py: bad input line {0} (expected a sequence "
              "of integers)".format(line)
          )
  
      for n in range(1, len(words)):
          predicted_word = words[n]
          history_start = max(0, n + 1 - args.ngram_order)
          history = tuple(words[history_start:n])
          self.AddCount(history, predicted_word, 1)
          self.total_num_words += 1
  
imports: import argparse
  import math
  import sys
  from collections import defaultdict
label_desc: Use image node_id 3 for calling the NgramCounts obj's underlying member method code with example usage: obj.AddRawCountsFromLine(line) without return types