在Spacy模式匹配中,如何编写可由以下模式触发的单个模式匹配规则: "red", apple" # ie, the rule must trigger when the input sentencefan"] # ie, the rule must trigger when the input sentence contains a token "light" 在上面的代码中,每个部分都
我正在使用Spacy中的基于规则的匹配器来查找文本中的一些模式。下面是我的模式的一个示例 text = "GDP in developing countries such as Vietnam will continue growing at a high rate但我想在网页上提供结果,并突出显示提取的部分,在这种情况下‘国家,如越南’。我在Displacy中找不到选项