docstr: Masked language model suggestion for replacing word in sentence
  
  Parameters
  ----------
  text : str
      context
  word : str
      word to be replaced
  full_sentences : bool
      If True, returns full sentences with replaced suggestions
  words_and_sentences : bool
      If True, returns tuples of (replacement word, full_sentence)
  
  Returns
  -------
  list
      Default: list of strings, suggestions for replacements
      If full_sentences or words_and_sentences: see documentation above.
docstr_tok: ["Masked","language","model","suggestion","for","replacing","word","in","sentence","Parameters","--","--","--","--","--","text",":","str","context","word",":","str","word","to","be","replaced","full_sentences",":","bool","If","True",",","returns","full","sentences","with","replaced","suggestions","words_and_sentences",":","bool","If","True",",","returns","tuples","of","(","replacement","word",",","full_sentence",")","Returns","--","--","--","-","list","Default",":","list","of","strings",",","suggestions","for","replacements","If","full_sentences","or","words_and_sentences",":","see","documentation","above","."]
code: def suggest_replace(
      self,
      text,
      word,
      full_sentences=False,
      words_and_sentences=False,
      **kwargs,
  ):
      """Masked language model suggestion for replacing word in sentence
  
      Parameters
      ----------
      text : str
          context
      word : str
          word to be replaced
      full_sentences : bool
          If True, returns full sentences with replaced suggestions
      words_and_sentences : bool
          If True, returns tuples of (replacement word, full_sentence)
  
      Returns
      -------
      list
          Default: list of strings, suggestions for replacements
          If full_sentences or words_and_sentences: see documentation above.
  
      """
      ret = self.tg.replace_word(text, word, **kwargs)
      if kwargs.get("verbose", False):
          print(
              "\n".join(
                  ["%6s %s" % ("%.2f" % x[2], x[1]) for x in ret[:5]]
              )
          )
      if words_and_sentences:
          return [
              (tuple(x[0]), x[1]) if len(x[0]) > 1 else (x[0][0], x[1])
              for x in ret
          ]
      if full_sentences:
          return [x[1] for x in ret]
      else:
          return [
              tuple(x[0]) if len(x[0]) > 1 else x[0][0] for x in ret
          ]
  
imports: import collections
  import itertools
  import string
  import numpy
  import re
  import copy
  import os
  import json
  import munch
  import pickle
  import csv
  from .viewer.template_editor import TemplateEditor
  from .multilingual import multilingual_params, get_language_code
label_desc: Use image node_id 4 for calling the Editor obj's underlying member method code with example usage: obj.suggest_replace(text, word, full_sentences, words_and_sentences) and returns: unknown, unknown, unknown