Skip to content
Extraits de code Groupes Projets
Valider ce0284ce rédigé par pat's avatar pat
Parcourir les fichiers

fix error in documentation due to change in code

parent ff652809
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -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
......
......@@ -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"]
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter