Issue with actxserver for synonyms calculation

조회 수: 2 (최근 30일)
Mazhar Iqbal Rana
Mazhar Iqbal Rana 2014년 4월 16일
편집: Mazhar Iqbal Rana 2014년 4월 16일
Doc = actxserver('Word.Application');
X = cellfun(@(word) invoke(Doc,'SynonymInfo',word), words, 'UniformOutput', false);
Synonyms = cellfun(@(X) get(X,'MeaningList'), X, 'UniformOutput', false);
Synonyms = cellfun(@(X) [words{X}; Synonyms{X}], num2cell(1:numel(words)), 'UniformOutput', false);
I am calculating Synonyms using below mentioned server and code
I have put this in function and have called that function from my file. But this function finds synonyms of few words and then this below error arrives,
Error using feval
Server Creation Failed: Server execution failed
Error in actxserver (line 87)
h=feval(['COM.' convertedProgID], 'server', machinename, interface);
Doc = actxserver('Word.Application');
Error in headline_recognition (line 54)
syn = takesynonyms(wordsstring(kk));
Please guide !
Thanks

답변 (0개)

카테고리

Help CenterFile Exchange에서 Spreadsheets에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by