100 個のファイルがあり、それぞれに x 量のニュース記事が含まれています。記事は、次の略語のセクションで構成されています。
HD BY WC PD SN SC PG LA CY LP TD CO IN NS RE IPC PUB AN
where [LP]
and[TD]
には任意の数の段落を含めることができます。
典型的なメッセージは次のようになります。
HD Corporate News: Alcoa Earnings Soar; Outlook Stays Upbeat
BY By James R. Hagerty and Matthew Day
WC 421 words
PD 12 July 2011
SN The Wall Street Journal
SC J
PG B7
LA English
CY (Copyright (c) 2011, Dow Jones & Company, Inc.)
LP
Alcoa Inc.'s profit more than doubled in the second quarter, but the giant
aluminum producer managed only to meet analysts' recently lowered forecasts.
Alcoa serves as a bellwether for U.S. corporate earnings because it is the
first major company to report and draws demand from a wide range of
industries.
TD
The results marked an early test of how corporate optimism is holding up
in the face of bleak economic news.
License this article from Dow Jones Reprint
Service[http://www.djreprints.com/link/link.html?FACTIVA=wjco20110712000115]
CO
almam : ALCOA Inc
IN
i2245 : Aluminum | i22 : Primary Metals | i224 : Non-ferrous Metals | imet
: Metals/Mining
NS
c15 : Performance | c151 : Earnings | c1521 : Analyst
Comment/Recommendation | ccat : Corporate/Industrial News | c152 :
Earnings Projections | ncat : Content Types | nfact : Factiva Filters |
nfce : FC&E Exclusion Filter | nfcpin : FC&E Industry News Filter
RE
usa : United States | use : Northeast U.S. | uspa : Pennsylvania | namz :
North America
IPC
DJCS | EWR | BSC | NND | CNS | LMJ | TPT
PUB
Dow Jones & Company, Inc.
AN
Document J000000020110712e77c00035
各記事の後、新しい記事が始まる前に 4 つの改行があります。次のように、これらの記事を配列に入れる必要があります。
$articles = array(
[0] = array (
[HD] => Corporate News: Alcoa earnings Soar; Outlook...
[BY] => By James R. Hagerty...
...
[AN] => Document J000000020110712e77c00035
)
)