<s> an evolutionary immune network for data clustering </s>
<s> an evolutionary immune network for data clustering </s>
<s> inet an extensible framework for simulating immune network </s>
<s> immunity based systems a survey </s>
<s> a recommender system based on the immune network </s>
我在MATLAB中工作,這些句子來自文本文件,我想逐行讀取這些句子,並且想要提取每個單詞以及計數每個單詞的頻率。我如何使用「正則表達式」函數來提取單詞?寫正則表達式從matlab中的文本文件中讀取句子
你有擡頭的文檔[正則表達式(HTTP:/ /www.mathworks.com/help/matlab/ref/regexp.html)? – Doresoom
@Doresoom是的,我讀過,並閱讀文本文件,我寫了下面的代碼F = fread(fid','* char')'; unigram = sort(unique(regexp(F,'','split')));並且在這個過程中它顯示「
」作爲一個單詞,但是這些不同並且我想將它們分開 – user2753079