本文介绍了具有德国变音符号的同义词库无法正常工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们当前正在处理同义词库文件. umlaut的同义词不起作用.

we are currently struggling with thesaurus files. Synonyms with umlaut do not work.

例如,我们为Kanalübersichten"添加了同义词.因为它的单数形式为Kanalübersicht",因为断词和词干无法识别该词.

For example, we have added a synonym for "Kanalübersichten" for the singular of it "Kanalübersicht", because word breaking and stemming does not recognize this word.

在文档库中,当我们搜索Kanalübersicht"而不是Kanalübersichten"时会找到文档.添加同义词库后,没有任何变化.因此,我开始使用搜索查询工具"(Search Query Tool)进行研究.并发现 列出以下内容:

In a doc lib there are documents that are found when we search for "Kanalübersicht", but not "Kanalübersichten". After we added the thesaurus, nothing changed. So I started researching with the "Search Query Tool" and found out the following:

如果我们搜索Kanalübersichten",则该工具将显示引擎正在内部查询Kanalübersichten".并且不添加同义词.所以我想,如果我们更改同义词库文件并用u替换ü,应该 工作.

If we search for "Kanalübersichten", the tool shows that the engine is querying internally for "Kanalubersicht" and does not add the synonym. So I thought, if we change the thesaurus file and replace ü with u it should work.

但是实际上并没有改变,查询不会改变.但是:如果我将查询更改为"Kanalubersichten",则查询包含"Kanalubersichten".和"Kanalubersicht" (同义词),然后找到所有带有关键字Kanalübersicht"的文件.

But actually it doesn't, the query doesn't change. BUT: If I change my query to "Kanalubersichten", the query contains "Kanalubersichten" and "Kanalubersicht" (the synonym) and I find all files with the keyword "Kanalübersicht".

但是您不能告诉用户替换所有的变音符号...

But you cannot tell the users to replace all umlaut ...

有什么解决办法吗?

//天气预报的真实尝试方法-随机数.字符串weather =(new Random()).Next(2)== 0?"rainy":"sunny";

// Tried and true method for weather forecasting - random numbers. String weather = (new Random()).Next(2)==0?"rainy":"sunny";

推荐答案

您是如何创建同义词库文件的?

How did you create your thesaurus file?

我使用Kanalübersichten"创建了同义词库文件,和"Kanalubersicht".之后,我使用Kanalübersichten"进行搜索,结果中包含"Kanalubersicht"返回.

I created a thesaurus file using "Kanalübersichten" and "Kanalubersicht". After that, I search using "Kanalübersichten", the result containing "Kanalubersicht" returned.

结果是:

请确保您为密钥添加了多行.

Please make sure you have added more one line for the keys.

如果我误解了你的意思,请随时回复.

If I misunderstand your meaning, please feel free to reply.

有关创建和导入同义词库的更多信息:

More information about creating and importing a thesaurus:

https: //blogs.technet.microsoft.com/tothesharepoint/2013/11/25/create-and-import-a-thesaurus-in-sharepoint-server-2013/

谢谢

温迪


这篇关于具有德国变音符号的同义词库无法正常工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-27 21:17