我想要做的是解析原始自然文本並找到描述日期的所有短語。 我有一個相當大的語料庫與所有引用標記的日期: I met him <date>yesterday</date>.
Roger Zelazny was born <date>in 1937</date>
He'll have a hell of a hangover <date>tomorrow morning</date>
我不想解釋
正則表達式專家請幫忙!我有以下兩個例子: '(JEN) This is a sentence.'
'This is another sentence (412).'
我試圖提取下列方式這兩個句子的不同可能要素(明知有三種可能的元素類型): ['JEN', 'This is a sentence', None]
[None, 'This is another sentence', 412]