How to provide Hyphenation Patterns (XML) to OpenSearch?

0

I would like to use the "hyphenation decompounder" token filter of OpenSearch, to split German compound words into separate tokens (https://www.elastic.co/guide/en/elasticsearch/reference/7.10/analysis-hyp-decomp-tokenfilter.html)

To use it you need to provide a XML file with "hyphenation_patterns_path" prop.

Supposedly packages are the go to tool to provide the file with OpenSearch service. However package upload is rejected with "Copy failed" error, detailing in "Validation failure: package contains unsupported content." ... since obviously the XML file is not a plain word list.

But how else can the XML file be provided to OpenSearch? Or is it just not possible at all?

This is the XML file in question: https://github.com/uschindler/german-decompounder/blob/master/de_DR.xml

Kind regards Stefan

stesie
質問済み 1年前270ビュー
1回答
0

What worked for us was removing the line

<!DOCTYPE hyphenation-info SYSTEM "hyphenation.dtd">
回答済み 1年前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ