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

如何将固定词进行分词? #987

Closed
command-z-z opened this issue Dec 8, 2022 · 0 comments
Closed

如何将固定词进行分词? #987

command-z-z opened this issue Dec 8, 2022 · 0 comments

Comments

@command-z-z
Copy link

command-z-z commented Dec 8, 2022

我想将一些固定(英文)搭配进行分词,如:

POST /_analyze
{
  "analyzer": "ik_max_word",
  "text": "helloWorld"
}

分词结果为:

{
  "tokens": [
    {
      "token": "helloWorld",
      "start_offset": 0,
      "end_offset": 10,
      "type": "ENGLISH",
      "position": 0
    }
  ]
}

可以通过什么方式或自定义,来将其分词,分为helloworld

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

No branches or pull requests

1 participant