Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

APIs in the python library #3

Open
kavitharaju opened this issue Nov 6, 2024 · 1 comment
Open

APIs in the python library #3

kavitharaju opened this issue Nov 6, 2024 · 1 comment

Comments

@kavitharaju
Copy link
Collaborator

  1. recognize_language(str) --> (language_name, script_name)
  2. recognize_script(str) --> script_name
  3. list_languages() --> [(language_name, script_name), ....]
  4. list_scripts() --> [script_names, ...]
  5. list_models() --> [{script_names: ..., model_name:..., features: ..., downloaded:T/F }, ....]
  6. get_model(lang_name=None, script_name=None, model_name=None) --> {script_names: ..., model_name:..., features: ..., downloaded:T/F }
  7. ....
@kavitharaju
Copy link
Collaborator Author

More ...
7. add_language(language_name, corpus) --> (language, script_name)
8. evaluate_models(labelled_test_data=[(str, lang_name), ...]) ---> precision, recall, accuracy and other metrics

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant