HI Sean, I am using Wolfram code used in their documentation, but sometimes it works (ibm, vz, dow) and sometimes it does not work (aapl, kodk, mmm, msft)
In[608]:= Interpreter["Company"]["aapl"]
Interpreter["Company"]["ibm"]
Interpreter["Company"]["kodk"]
Interpreter["Company"]["mmm"]
Interpreter["Company"]["vz"]
Interpreter["Company"]["msft"]
Interpreter["Company"]["dow"]
Out[608]= Failure["InterpretationFailure",
Association[
"MessageTemplate" :> MessageName[Interpreter, "semantictype"],
"MessageParameters" -> Association[
"Type" -> "company", "Input" -> "aapl"], "Type" -> "Company",
"Input" -> "aapl"]]
Out[609]= Entity["Company", \
"InternationalBusinessMachinesCorporation::vq88c"]
Out[610]= Failure["InterpretationFailure",
Association[
"MessageTemplate" :> MessageName[Interpreter, "semantictype"],
"MessageParameters" -> Association[
"Type" -> "company", "Input" -> "kodk"], "Type" -> "Company",
"Input" -> "kodk"]]
Out[611]= Failure["InterpretationFailure",
Association[
"MessageTemplate" :> MessageName[Interpreter, "semantictype"],
"MessageParameters" -> Association[
"Type" -> "company", "Input" -> "mmm"], "Type" -> "Company",
"Input" -> "mmm"]]
Out[612]= Entity["Company", "VZHolding::286x4"]
Out[613]= Failure["InterpretationFailure",
Association[
"MessageTemplate" :> MessageName[Interpreter, "semantictype"],
"MessageParameters" -> Association[
"Type" -> "company", "Input" -> "msft"], "Type" -> "Company",
"Input" -> "msft"]]
Out[614]= Entity["Company", "DowHoldings::7wkrd"]
I tried your code and sometimes it works (ibm, dow, facebook) and sometimes it does not work (aapl, kodk, mmm, msft and now vz does not work)
In[633]:= CompanyData[Interpreter["Company"]["aapl"], "CommonShares"]
CompanyData[Interpreter["Company"]["ibm"], "CommonShares"]
CompanyData[Interpreter["Company"]["kodk"], "CommonShares"]
CompanyData[Interpreter["Company"]["mmm"], "CommonShares"]
CompanyData[Interpreter["Company"]["vz"], "CommonShares"]
CompanyData[Interpreter["Company"]["dow"], "CommonShares"]
CompanyData[Interpreter["Company"]["FaceBook"], "CommonShares"]
During evaluation of In[633]:= CompanyData::notent: Failure[\[WarningSign] Message: No company interpretation found. Try again.
Tag: InterpretationFailure
] is not a known entity, class, or tag for CompanyData. Use CompanyData[] for a list of entities.
Out[633]= CompanyData[Failure["InterpretationFailure",
Association[
"MessageTemplate" :> MessageName[Interpreter, "semantictype"],
"MessageParameters" -> Association[
"Type" -> "company", "Input" -> "aapl"], "Type" -> "Company",
"Input" -> "aapl"]], "CommonShares"]
Out[634]= {Entity["Financial", "NYSE:IBM"],
Entity["Financial", "DE:IBM"], Entity["Financial", "F:IBM"],
Entity["Financial", "L:IBM"]}
During evaluation of In[633]:= CompanyData::notent: Failure[\[WarningSign] Message: No company interpretation found. Try again.
Tag: InterpretationFailure
] is not a known entity, class, or tag for CompanyData. Use CompanyData[] for a list of entities.
Out[635]= CompanyData[Failure["InterpretationFailure",
Association[
"MessageTemplate" :> MessageName[Interpreter, "semantictype"],
"MessageParameters" -> Association[
"Type" -> "company", "Input" -> "kodk"], "Type" -> "Company",
"Input" -> "kodk"]], "CommonShares"]
During evaluation of In[633]:= CompanyData::notent: Failure[\[WarningSign] Message: No company interpretation found. Try again.
Tag: InterpretationFailure
] is not a known entity, class, or tag for CompanyData. Use CompanyData[] for a list of entities.
Out[636]= CompanyData[Failure["InterpretationFailure",
Association[
"MessageTemplate" :> MessageName[Interpreter, "semantictype"],
"MessageParameters" -> Association[
"Type" -> "company", "Input" -> "mmm"], "Type" -> "Company",
"Input" -> "mmm"]], "CommonShares"]
Out[637]= {}
Out[638]= {Entity["Financial", "NYSE:DOW"],
Entity["Financial", "F:2OY"], Entity["Financial", "DE:2OY"]}
Out[639]= {Entity["Financial", "NASDAQ:FB"],
Entity["Financial", "DE:FB2A"], Entity["Financial", "F:FB2A"]}
the capricious nature of the code is tiresome, FaceBook works, but FB does not -- what is the secret in getting this code to work???? VZ works in Interpreter but not when wrapped with CompanyData???