Skip to content

0.2.0

Compare
Choose a tag to compare
@bminixhofer bminixhofer released this 07 Jan 09:58
  • Updated to LT version 5.2.
  • Suggestions now have a message and source attribute (#5):
suggestions = rules.suggest_sentence("She was not been here since Monday.")
for s in suggestions:
  print(s.start, s.end, s.text, s.source, s.message)

# prints:
# 4 16 ['was not', 'has not been'] WAS_BEEN.1 Did you mean was not or has not been?
  • NLPRule is parallelized by default now. Parallelism can be turned off by setting the NLPRULE_PARALLELISM environment variable to false.