Skip to content

Dynamic Language.Register()Β #123

@kacisse

Description

@kacisse

Is your feature request related to a problem? Please describe.
First of all, amazing work. I think I'm not using the API properly. Here is what I'm doing:

  1. Detect language with the language detector --> OK I et a Language object
  2. I need to detect sentences optimized for that language --> KO because I need to enter for ex English.Register() before creating the pipeline, but its not ideal I would like to do Language.Register() dynamically because I might have several languages. Currently I have to either register all languages at the beginning of the app, OR create a custom mapping somehow but it's really messy.

Describe the solution you'd like
do Language.Register() dynamically

Describe alternatives you've considered
Currently I have to either register all languages at the beginning of the app, OR create a custom mapping somehow but it's really messy.

Additional context
I'm probably don't use the proper API here, so please let me know if there is a seamless solution :)

Best.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions