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

feat: pass config down to kuromojin #6

Merged
merged 3 commits into from
Jan 25, 2019
Merged

feat: pass config down to kuromojin #6

merged 3 commits into from
Jan 25, 2019

Conversation

linonetwo
Copy link
Contributor

#5

Pass undefined to https://github.com/azu/kuromojin/blob/master/src/kuromojin.js#L25 if no option is passed in.


ready() {
return getTokenizer().then((tokenizer: any) => {
constructor(options: { dicPath?: string }) {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

options would be optional.

test/nlcst-parse-japanese-test.ts(10,25): error TS2554: Expected 1 arguments, but got 0.

The following changes will resolve this compile error.

-     constructor(options: { dicPath?: string }) {
+     constructor(options: { dicPath?: string } = {}) {

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for pointing that out!

@azu azu merged commit e313046 into azu:master Jan 25, 2019
@azu
Copy link
Owner

azu commented Jan 25, 2019

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