From ce0284cedbf005f2b5ae97e10ea20f5dc44f25d1 Mon Sep 17 00:00:00 2001
From: pat <pat@lucy.local>
Date: Mon, 23 Jan 2017 14:52:32 +0100
Subject: [PATCH] fix error in documentation due to change in code

---
 README.md           | 5 ++++-
 unitex/processor.py | 6 +++---
 2 files changed, 7 insertions(+), 4 deletions(-)

diff --git a/README.md b/README.md
index 6def713..57b1fbb 100644
--- a/README.md
+++ b/README.md
@@ -200,8 +200,11 @@ from unitex.processor import UnitexProcessor
 files = [ ... ]
 grammar = load_persistent_fst2("/path/to/grammar.fst2")
 
+config = UnitexConfig()
+config.load("/path/to/unitex.yaml")
+
 # Persistence is achieved during object initialization
-processor = UnitexProcessor("/path/to/unitex.yaml")
+processor = UnitexProcessor(config)
 
 kwargs = {}
 kwargs["xml"] = False
diff --git a/unitex/processor.py b/unitex/processor.py
index f0a8137..3a5b2df 100644
--- a/unitex/processor.py
+++ b/unitex/processor.py
@@ -380,9 +380,9 @@ class UnitexProcessor(object):
 
         *Return [TextFST]:*
 
-          The function returns a TextFST object. The object uses the
-          text.tfst and text.tind files which are cleaned (i.e. erased)
-          when the processor is closed.
+        WARNING: The function returns a TextFST object. The object uses
+        the text.tfst and text.tind files which are cleaned (i.e. erased)
+        when the processor is closed.
         """
         kwargs = self.__config["tools"]["normalize"]
 
-- 
GitLab