#!/usr/bin/env python3 import sys sys.path.insert(0, '/MASTERFOLDER/Tools/text-polish/src') from model_loader import load_model, polish from au_spelling import convert_to_au_spelling model, tokenizer = load_model() test_cases = [ "teh color was realy nice", # Should become "the colour was really nice" "I need to organize the theater", # Should become "I need to organise the theatre" ] for test in test_cases: result = polish(model, tokenizer, test) result_au = convert_to_au_spelling(result) print(f"Input: {test}") print(f"Polish: {result}") print(f"AU: {result_au}") print()