Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
how to remove a word?

Subject: how to remove a word?

From: nur

Date: 28 Jan, 2008 08:01:02

Message: 1 of 4

hi,
i have 2 arrays of token,named token1 and token2.i want to
compare all the tokens in both two database(token1 and
token2) and then remove the same word in one of the
database when the comparison process is done.what is the
command should i use to do this task?
thanx.

Subject: how to remove a word?

From: Pekka

Date: 28 Jan, 2008 08:22:02

Message: 2 of 4

"nur " <wna@mathworks.com> wrote in message
<fnk23u$9li$1@fred.mathworks.com>...
> hi,
> i have 2 arrays of token,named token1 and token2.i want
to
> compare all the tokens in both two database(token1 and
> token2) and then remove the same word in one of the
> database when the comparison process is done.what is the
> command should i use to do this task?
> thanx.

Depending on the type of your variables and what you
actually want to do.. you could see documentation of
intersect
setdiff
ismember

Subject: how to remove a word?

From: nur

Date: 28 Jan, 2008 08:32:02

Message: 3 of 4

ok.thanks a lot.i'll see the documentation first.


"Pekka " <pekka.nospam.kumpulainen@tut.please.fi> wrote in
message <fnk3ba$pqi$1@fred.mathworks.com>...
> "nur " <wna@mathworks.com> wrote in message
> <fnk23u$9li$1@fred.mathworks.com>...
> > hi,
> > i have 2 arrays of token,named token1 and token2.i want
> to
> > compare all the tokens in both two database(token1 and
> > token2) and then remove the same word in one of the
> > database when the comparison process is done.what is
the
> > command should i use to do this task?
> > thanx.
>
> Depending on the type of your variables and what you
> actually want to do.. you could see documentation of
> intersect
> setdiff
> ismember

Subject: how to remove a word?

From: nur

Date: 29 Jan, 2008 05:13:01

Message: 4 of 4

i've done the tokenization process of the sample of nonspam
email.right now, i'm focusing in stopword removal program.

frankly speaking, i've two data, which are nonspam.dat and
STOPWORDLISTedit.dat.after doing tokenization process to
the nonspam.dat, i actually want to compare the tokens in
both data ( nonspam.dat and STOPWORDLIST.dat). once the
program compare both data, it will remove the same tokens
(between both data)in the nonspam.dat. the remaining tokens
will be stored and will be used for the next process.
do you have any suggestions to this problem? i've try using
setdiff command but it doesn't work.

Tags for this Thread

No tags are associated with this thread.

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us