关系抽取之PCNN(Piece-Wise-CNN)
下圖清晰了顯示了PCNN的整個網絡架構,PCNN的實現過程:
例如:“As we known,Steve Jobs?was the co-founder of?Apple Inc?which is a great company in America.”
由于句子中有兩個entity,所以這條句子就會產生兩個和句子長度相同的編碼。
pos_1:[-4,-3,-2,-1,0,1,2,3......] ,其中0就是Steve Jobs的位置。
pos_2:[-9,-8,-7,-6,-5,-4,-3,-2,-1,0,1,2,3......]?其中0就是Apple Inc的位置。
比如?As we known,Steve Jobs?was the co-founder of?Apple Inc?which is a great company in America,將被切成:
As we known,Steve Jobs
Steve Jobs?was the co-founder of?Apple Inc
Apple Inc?which is a great company in America.
??從上面PCNN的流程可以發現,這個網絡結構很注重entitiy之間的距離信息,位置信息,以及entitiy之間或者左右的信息。其實這些都是是關系抽取中最重要的特征。
例如:Steve Jobs?was the?co-founder?of?Apple Inc?, 關系詞?co-founder就在兩個entity之間
總結
以上是生活随笔為你收集整理的关系抽取之PCNN(Piece-Wise-CNN)的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 从支付架构到风控报警,支付系统的设计如何
- 下一篇: ffmpeg的安装和使用教程