模型:

lighthousefeed/yoda-ner

英文

什么是YODA

YODA是Google Feed产品优化的一系列模型。我们旨在通过增加和改进某些元数据(如简短标题、颜色、尺寸等)来扩大电子商务的市场覆盖范围。YODA目前已被300多家公司使用,覆盖了350万个产品。

NER的用途

我们已经训练了一个用于产品特征提取的NER模型。我们可以提取颜色、尺寸、品牌和能量标签等数据。该模型经过300万多行的产品元数据训练,返回以下分数:

结果:

  • F-score (micro) 0.972
  • F-score (macro) 0.9692
  • 准确度 0.9461

按类别统计:

precision recall f1-score support
size 0.9734 0.9793 0.9764 26707
brand 0.9618 0.9788 0.9702 15621
color 0.9566 0.9612 0.9589 6785
energy 0.9444 1.0000 0.9714 119
precision recall f1-score support
micro avg 0.9673 0.9767 0.9720 49232
macro avg 0.9591 0.9798 0.9692 49232
weighted avg 0.9674 0.9767 0.9720 49232

演示:如何在Flair中使用

所需:

from flair.data import Sentence
from flair.models import SequenceTagger

# load tagger
tagger = SequenceTagger.load("lighthousefeed/yoda-ner")

# make example sentence
sentence = Sentence("Jean Paul Gaultier Classique - 50 ML Eau de Parfum  Damen Parfum.")

# predict NER tags
tagger.predict(sentence)

# print sentence
print(sentence)

# print predicted NER spans
print('The following NER tags are found:')

# iterate over entities and print
for entity in sentence.get_spans('ner'):
    print(entity)

联系方式

联系首席机器学习开发人员Iván R. Gázquez咨询任何问题。我们很乐意听到您使用此模型的情况!