Skip to content

Trying to create a basic regex for spanish language without success. #802

Answered by omri374
Idomingog asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @Idomingog, from a first glance it appears like you create the AnalyzerEngine object twice. Once with the nlp engine and then with the registry.

Try this :

registry = RecognizerRegistry()
registry.add_recognizer(cp_recognizer)

analyzer = AnalyzerEngine(
nlp_engine=nlp_engine_with_spanish, 
registry=registry, 
supported_languages=["en", "es"]
)

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Idomingog
Comment options

Answer selected by Idomingog
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants