×

Method and apparatus for processing text information

  • US 10,387,460 B2
  • Filed: 06/08/2016
  • Issued: 08/20/2019
  • Est. Priority Date: 01/06/2014
  • Status: Active Grant
First Claim
Patent Images

1. A method for processing text information, comprising:

  • obtaining, by a terminal, text information and extracting, by the terminal, text characters contained in the text information;

    extracting, by the terminal, from the text characters, target characters satisfying a predetermined rule;

    calculating, by the terminal, a filtering index of the text information according to the target characters;

    when the filtering index meets a predetermined condition, executing, by the terminal, an operation corresponding to the predetermined condition on the text information;

    wherein the step of calculating, by the terminal, the filtering index of the text information according to the target characters comprises;

    separately converting the text characters and the target characters into characters in a given encoding form; and

    calculating a ratio of a total number of bytes of the converted target characters to a total number of bytes of remaining characters in the converted text characters excluding the converted target characters, and using the ratio as the filtering index of the text information; and

    wherein, when the filtering index meets the predetermined condition, executing, by the terminal, the operation corresponding to the predetermined condition on the text information comprises;

    analyzing a magnitude relationship between the filtering index and a preset numerical range, and assigning a corresponding weight value to the filtering index according to an analysis result and a preset weight table, andwhen a value obtained after assigning the corresponding weight value to the filtering index according to the analysis result and the preset weight table meets the predetermined condition, executing, by the terminal, the operation corresponding to the predetermined condition on the text information comprises.

View all claims
  • 1 Assignment
Timeline View
Assignment View
    ×
    ×