TF-IDF algorithm Improvement

Source: Internet
Author: User
Tags idf
concept : TF-IDF (term frequency–inverse document frequency) is a commonly used weighted technique for information retrieval and information mining. TF-IDF is a statistical method used to evaluate the importance of a word to one of the files in a set of files or a corpus. The importance of a word increases in proportion to the number of times it appears in the file, but it decreases inversely as it appears in the corpus.

disadvantage : simply by "word frequency" to measure the importance of a term, not comprehensive enough, sometimes important words may not appear many times. Moreover, this algorithm can not reflect the position of the word, the occurrence of the position of the word and the occurrence of the post-position of the word, are considered to be the same importance, this is not true. Also did not consider part of speech.

idea : An article is generally composed of the title, the text, the most important part is often the title, the beginning of the article, the end of the article, and the text is composed of sentences. Generally speaking, the most important part of a sentence is the main predicate, and the subject and object is generally a noun, predicate is generally a verb, of course, adjectives can be modified nouns, adverbs can modify verbs.

program : You can give the title, the beginning of the article, the word at the end of the higher weight, calculate the keyword weight, you can consider the part of speech, generally speaking nouns > verbs > Adjectives, adverbs > Other

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.