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

Streamlined package #4

Merged
merged 1 commit into from
Nov 14, 2016
Merged

Streamlined package #4

merged 1 commit into from
Nov 14, 2016

Conversation

xrotwang
Copy link
Contributor

This PR

  • refactors Tokenizer
    • such that Profile and Rules become separate objects, which makes
      initialization more modular,
    • adds some configurability of input and output,
    • unifies tokenize and tokenize_ipa into a single method, implemented
      in __call__ (because tokenizing seems to be the default thing to do
      for a Tokenizer).
  • adds a cli, with two sub-commands tokenize and profile

closes #1

This PR
- refactors `Tokenizer`
  - such that `Profile` and `Rules` become separate objects, which makes
    initialization more modular,
  - adds some configurability of input and output,
  - unifies `tokenize` and `tokenize_ipa` into a single method, implemented
    in `__call__` (because tokenizing seems to be the default thing to do
    for a Tokenizer).
- adds a cli, with two sub-commands `tokenize` and `profile`

closes cldf#1
@xrotwang
Copy link
Contributor Author

Thanks for merging - hope you are not frustrated by my ever-changing views of what API is best :)

@bambooforest
Copy link
Collaborator

Not at all -- sorry for the slow merge (was returning to Z). Mattis is here now, so it was a good time to look it over and discuss next topics.

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

Successfully merging this pull request may close these issues.

2 participants