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 ...@@ -200,8 +200,11 @@ from unitex.processor import UnitexProcessor
files = [ ... ] files = [ ... ]
grammar = load_persistent_fst2("/path/to/grammar.fst2") grammar = load_persistent_fst2("/path/to/grammar.fst2")
config = UnitexConfig()
config.load("/path/to/unitex.yaml")
# Persistence is achieved during object initialization # Persistence is achieved during object initialization
processor = UnitexProcessor("/path/to/unitex.yaml") processor = UnitexProcessor(config)
kwargs = {} kwargs = {}
kwargs["xml"] = False kwargs["xml"] = False
......
...@@ -380,9 +380,9 @@ class UnitexProcessor(object): ...@@ -380,9 +380,9 @@ class UnitexProcessor(object):
*Return [TextFST]:* *Return [TextFST]:*
The function returns a TextFST object. The object uses the WARNING: The function returns a TextFST object. The object uses
text.tfst and text.tind files which are cleaned (i.e. erased) the text.tfst and text.tind files which are cleaned (i.e. erased)
when the processor is closed. when the processor is closed.
""" """
kwargs = self.__config["tools"]["normalize"] 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