OpenTag_2019 icon indicating copy to clipboard operation
OpenTag_2019 copied to clipboard

Scaling Up Open Tagging from Tens to Thousands: Comprehension Empowered Attribute Value Extraction from Product Title

OpenTag_2019

Scaling Up Open Tagging from Tens to Thousands: Comprehension Empowered Attribute Value Extraction from Product Title

该论文是在OpenTag: Open Attribute Value Extraction from Product Profiles的基础上做的改进。模型结构如下:

模型结构

requirements

  1. pytorch
  2. pytorch-transformer
  3. sklearn
  4. seqeval
  5. tqdm
  6. torchcrf

data

  1. data目录下的raw.txt 是全量数据,中文品牌_适用季节.pkl 是从中抽出用来实验的小数据集
  2. utils下的data_process.py 提供两种获得实验数据的方式,bert分词和不用bert分词,运行 python data_process.py 可以得到 中文品牌_适用季节.pkl
  3. 想要获取全量数据自己看data_process.py 应该也可以看明白了
  4. dataset.py 封装了Dataset和DataLoader

model

  1. 提供了两个模型,LSTM_CRF.py 做一个baseline
  2. OpenTag_2019.py 复现的是该论文的模型结构

run

  1. python main.py train --batch_size=128 即可运行
  2. 相应的配置可以更改config.py

result

  1. 没有很仔细的去调参,该结果看看就好了。需要注意的是使用bert时,lr应该在2e-5、3e-5等,bert对学习率还是非常敏感的
  2. 在小量数据集上的实验结果 (中文品牌_适用季节.pkl)
  • LSTM_CRF lstm_crf

  • OpenTag_2019 opentag_2019