Why is it showing: Undefined function or variable 'removeStopWords'.
이전 댓글 표시
Dear I am using R2017B with text analytics software installed(I have checked by searching get add-ons). I have written a simpole function which is following:
function x=test()
s='i am a boy and u r a grl';
disp(removeStopWords(s));
end
And it shows the following error:
Undefined function or variable 'removeStopWords'.
Would you please shed light on this issue explaining why is this happening?
Thanks,
답변 (2개)
Walter Roberson
2018년 11월 5일
2 개 추천
https://www.mathworks.com/help/textanalytics/ref/tokenizeddocument.removestopwords.html
Introduced in R2018b
madhan ravi
2018년 11월 5일
편집: madhan ravi
2018년 11월 5일
function x=test() %EDITED
s= tokenizedDocument([ 'i am a boy and u r a grl']);
disp(removeStopWords(s));
end
댓글 수: 11
Saugata Bose
2018년 11월 5일
madhan ravi
2018년 11월 5일
Type
ver
in command window and paste what shows there
madhan ravi
2018년 11월 5일
편집: madhan ravi
2018년 11월 5일
Also try my edited answer
madhan ravi
2018년 11월 5일
Please before putting up a comment try my edited answer and then comment!
Saugata Bose
2018년 11월 5일
madhan ravi
2018년 11월 5일
편집: madhan ravi
2018년 11월 5일
Ok what showed up when you typed ver? Also try
which removeStopWords
in command window and paste your result here
Saugata Bose
2018년 11월 5일
madhan ravi
2018년 11월 5일
Then I suspect you haven’t installed Text Analytics toolbox , ok what showed up when you typed
ver
in command window?
Saugata Bose
2018년 11월 5일
madhan ravi
2018년 11월 5일
So it appears that you have Text Analystics Toolbox so that best option is to contact Mathworks support team by pressing the Contact Us button on the on right corner of this page. They will guide you further.
Christopher Creutzig
2018년 11월 26일
removeStopWords does not work on strings or char vectors, only on tokenizedDocument.
The way MATLAB searches for functions means that it will only find removeStopWords if you have a tokenizedDocument in your workspace.
>> clear all
>> which removeStopWords
'removeStopWords' not found.
>> td = tokenizedDocument;
>> which removeStopWords
[..]/matlab/toolbox/textanalytics/textanalytics/tokenizedDocument.m % tokenizedDocument method
카테고리
도움말 센터 및 File Exchange에서 DO Qualification Kit (for DO-178)에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!