Giter VIP home page Giter VIP logo

elasticsearch-analysis-ictclas's People

Contributors

yangyaofei avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

elasticsearch-analysis-ictclas's Issues

Wrong offset when tokenize List

localhost:9200/_analyze

{
    "analyzer": "ictclas_index",
    "text": [
        "1c77c1a0-3dc8-4802-aa86-d1aa4cd8210d",
        "815ecec9-b6dd-4eec-b0c5-e3a58b7c4495"
    ]
}

Got:

{
    "tokens": [
        {
            "token": "1c77c1a0",
            "start_offset": 0,
            "end_offset": 8,
            "type": "x",
            "position": 0
        },
        {
            "token": "-",
            "start_offset": 8,
            "end_offset": 9,
            "type": "wp",
            "position": 1
        },
        {
            "token": "3dc8",
            "start_offset": 9,
            "end_offset": 13,
            "type": "x",
            "position": 2
        },
        {
            "token": "-",
            "start_offset": 13,
            "end_offset": 14,
            "type": "wp",
            "position": 3
        },
        {
            "token": "4802-",
            "start_offset": 14,
            "end_offset": 19,
            "type": "m",
            "position": 4
        },
        {
            "token": "4802",
            "start_offset": 14,
            "end_offset": 18,
            "type": "",
            "position": 5
        },
        {
            "token": "-",
            "start_offset": 18,
            "end_offset": 19,
            "type": "",
            "position": 6
        },
        {
            "token": "aa86",
            "start_offset": 19,
            "end_offset": 23,
            "type": "x",
            "position": 7
        },
        {
            "token": "-",
            "start_offset": 23,
            "end_offset": 24,
            "type": "wp",
            "position": 8
        },
        {
            "token": "d1aa4cd8210d",
            "start_offset": 24,
            "end_offset": 36,
            "type": "x",
            "position": 9
        },
        {
            "token": "815ecec9",
            "start_offset": 1,
            "end_offset": 9,
            "type": "n",
            "position": 10
        },
        {
            "token": "-",
            "start_offset": 9,
            "end_offset": 10,
            "type": "wp",
            "position": 11
        },
        {
            "token": "b6dd",
            "start_offset": 10,
            "end_offset": 14,
            "type": "x",
            "position": 12
        },
        {
            "token": "-",
            "start_offset": 14,
            "end_offset": 15,
            "type": "wp",
            "position": 13
        },
        {
            "token": "4eec",
            "start_offset": 15,
            "end_offset": 19,
            "type": "x",
            "position": 14
        },
        {
            "token": "-",
            "start_offset": 19,
            "end_offset": 20,
            "type": "wp",
            "position": 15
        },
        {
            "token": "b0c5",
            "start_offset": 20,
            "end_offset": 24,
            "type": "x",
            "position": 16
        },
        {
            "token": "-",
            "start_offset": 24,
            "end_offset": 25,
            "type": "wp",
            "position": 17
        },
        {
            "token": "e3a58b7c4495",
            "start_offset": 25,
            "end_offset": 37,
            "type": "x",
            "position": 18
        }
    ]
}

815ecec9 got wrong:

startOffset must be non-negative, and endOffset must be >= startOffset, and offsets must not go backwards startOffset=1,endOffset=9,lastStartOffset=24 for field

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.