Home > Back-end >  What kind of algorithm filter sensitive word?
What kind of algorithm filter sensitive word?

Time:09-29

A text file with a ", "words, and how to detect whether there is a sensitive word in a text.

The most direct way to each word out to search, are there any other way?

CodePudding user response:

Still want to search

CodePudding user response:

Never make, give you search
http://www.cnblogs.com/passer/p/3461052.html
http://hellohank.iteye.com/blog/1327903
http://my.oschina.net/u/999578/blog/151791
http://blog.csdn.net/woshiaotian/article/details/10047675

CodePudding user response:

refer to the second floor sololie response:
http://www.cnblogs.com/passer/p/3461052.html


The first looks can also, is a c + +, how to use in cb?

CodePudding user response:

Not for algorithm, understand its algorithm to go ah,,,
I won't do, just give you search

CodePudding user response:

First it shows is not a c + +, c #, his very detailed notes and comments, difficulty,

CodePudding user response:

Sololie search capability is strong, just good man do to the end, help the building translated into c + + and debugging good bai,

CodePudding user response:

refer to 6th floor ccrun response:
sololie search capability is strong, just good people to do what, translated into c + + for the building and debugging good bai,


Yes, or demon elder brother help me translate the can, I am a c + + will only see a little bit, translation on what is really more troublesome...

CodePudding user response:

The code is too long, I don't have much time temporarily, I see sololie very idle, every day there are a lot of time rob posts, so try to find him,

CodePudding user response:

Above I said, I would never make it, I'm not understand algorithm, translation can't debugging, and a Dictionary this generic Dictionary class don't know how to translate into c + +, template is unlikely to use, and the lambda also not too will use

CodePudding user response:

I depend, desktop application should also be sensitive word?

CodePudding user response:

A regular expression

CodePudding user response:

The best regular, but XE5 don't know how to use regular, a default support for regular, but no regular after installation

CodePudding user response:

Keywords is best not to use separator, but a line of a keyword with more convenient, at the same time, meets the keywords in the separator is not special treatment

CodePudding user response:

refer to 12 floor KFRGHT reply:
the best regular ah, but XE5 don't know how to use regular, a default support for regular, but no regular after full install


Cb2010

Well, that's a key word in each row.

CodePudding user response:

Use hash table, I estimate speed is quicker,

CodePudding user response:

http://cmsblogs.com/? P=1031 Java implementation of the algorithm
  • Related