将我的elasticsearch存储库连接到INCEPTION NER注释程序的正确方法是什么<object>

问题描述 投票:0回答:1
我已经设置了一个用于文本注释的本地环境,并希望使用此处开发的 INCEpTION 应用程序:

https://github.com/inception-project/inception/blob/main/CONTRIBUTORS.txt

当尝试连接到我的存储库时,我可以使用此处找到的示例连接并查找文档:

https://inception-project.github.io/releases/22.1/docs/user-guide.html#sect_external-search-repos

但是当尝试连接到使用 FSCrawler 创建并索引的存储库时,我无法进行搜索。

他们的示例的映射是:

{ "mappings": { "_doc": { "properties": { "doc": { "properties": { "text": { "type": "text", "fields": { "keyword": { "type": "keyword", "ignore_above": 256 } } } } }, "metadata": { "properties": { "language": { "type": "text", "fields": { "keyword": { "type": "keyword", "ignore_above": 256 } } }, "source": { "type": "text", "fields": { "keyword": { "type": "keyword", "ignore_above": 256 } } }, "timestamp": { "type": "text", "fields": { "keyword": { "type": "keyword", "ignore_above": 256 } } }, "title": { "type": "text", "fields": { "keyword": { "type": "keyword", "ignore_above": 256 } } }, "uri": { "type": "text", "fields": { "keyword": { "type": "keyword", "ignore_above": 256 } } } } } } } } }
我的索引映射是:

{ "mappings": { "_doc": { "dynamic_templates": [ { "raw_as_text": { "path_match": "meta.raw.*", "mapping": { "fields": { "keyword": { "ignore_above": 256, "type": "keyword" } }, "type": "text" } } } ], "properties": { "attachment": { "type": "binary" }, "attributes": { "properties": { "group": { "type": "keyword" }, "owner": { "type": "keyword" } } }, "content": { "type": "text" }, "file": { "properties": { "checksum": { "type": "keyword" }, "content_type": { "type": "keyword" }, "created": { "type": "date", "format": "dateOptionalTime" }, "extension": { "type": "keyword" }, "filename": { "type": "keyword", "store": true }, "filesize": { "type": "long" }, "indexed_chars": { "type": "long" }, "indexing_date": { "type": "date", "format": "dateOptionalTime" }, "last_accessed": { "type": "date", "format": "dateOptionalTime" }, "last_modified": { "type": "date", "format": "dateOptionalTime" }, "url": { "type": "keyword", "index": false } } }, "meta": { "properties": { "altitude": { "type": "text" }, "author": { "type": "text" }, "comments": { "type": "text" }, "contributor": { "type": "text" }, "coverage": { "type": "text" }, "created": { "type": "date", "format": "dateOptionalTime" }, "creator_tool": { "type": "keyword" }, "date": { "type": "date", "format": "dateOptionalTime" }, "description": { "type": "text" }, "format": { "type": "text" }, "identifier": { "type": "text" }, "keywords": { "type": "text" }, "language": { "type": "keyword" }, "latitude": { "type": "text" }, "longitude": { "type": "text" }, "metadata_date": { "type": "date", "format": "dateOptionalTime" }, "modifier": { "type": "text" }, "print_date": { "type": "date", "format": "dateOptionalTime" }, "publisher": { "type": "text" }, "rating": { "type": "byte" }, "relation": { "type": "text" }, "rights": { "type": "text" }, "source": { "type": "text" }, "title": { "type": "text" }, "type": { "type": "text" } } }, "path": { "properties": { "real": { "type": "keyword", "fields": { "fulltext": { "type": "text" }, "tree": { "type": "text", "analyzer": "fscrawler_path", "fielddata": true } } }, "root": { "type": "keyword" }, "virtual": { "type": "keyword", "fields": { "fulltext": { "type": "text" }, "tree": { "type": "text", "analyzer": "fscrawler_path", "fielddata": true } } } } } } } } }
我可以使用标准 _search 从其他任何地方很好地搜索这两个存储库,匹配“内容”对象

vue standard search

{ "metadata": { "language": "en", "source": "My favourite document collection", "timestamp": "2011/11/11 11:11", "uri": "http://the.internet.com/my/document/collection/document1.txt", "title": "Cool Document Title" }, "doc": { "text": "This is a test Document" } }
即使将示例 1 级别向上移动,相同的查询也适用于示例 =

{ "metadata": { "language": "en", "source": "My favourite document collection", "timestamp": "2011/11/11 11:11", "uri": "http://the.internet.com/my/document/collection/document1.txt", "title": "Cool Document Title" }, "doc": "This is a test Document" } }
我需要在下面指定哪个对象才能访问我的映射的“内容”对象

Inception Search Setup

克里斯

json elasticsearch named-entity-recognition inception
1个回答
0
投票
不幸的是,这是一个功能问题。

映射必须非常具体才能使用此功能,除非文档映射非常具体,否则重新映射(更改 fscrawler 映射)不起作用。

仅更改字段和类型是行不通的。

https://github.com/inception-project/inception/issues/2516

© www.soinside.com 2019 - 2024. All rights reserved.