Information acquisition method, device and electronic equipment
By obtaining information documents from different source websites, performing preprocessing and clustering, the problem of low information document quality was solved, and the accuracy and usability of information acquisition were improved.
Patent Information
- Application Number
- CN202611397983.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-09-09
- Publication Date
- 2026-11-24
AI Technical Summary
Existing information retrieval technologies rely on rule matching with fixed keywords or simple text retrieval, resulting in inconsistent quality of the retrieved information documents and making it difficult to guarantee the accuracy and usability of the information.
Information documents are obtained from different source websites, preprocessed to generate text vectors, isolated vectors are deleted, and semantically similar text vectors are grouped into the same cluster using clustering. Finally, a target document set is selected based on document attribute information.
It effectively filters out irrelevant and low-quality information, significantly improving the accuracy and usability of information documents and enhancing the quality of information retrieval.
Smart Images

Figure CN123159338A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of big data, and more specifically, to a method, apparatus, and electronic device for acquiring information. Background Technology
[0002] As financial institutions launch more and more services, they also need to analyze the services during the issuance process to determine whether the issuance status is good and to further process the services based on the analysis results.
[0003] When analyzing the issuance status of a business, it is usually necessary to obtain relevant documents and information from the Internet to analyze the issuance status. However, existing information acquisition technologies mainly rely on rule matching based on fixed keywords or simple text retrieval mechanisms. Although this method can obtain a large amount of information related to the target business, it often also obtains a lot of redundant information that is not related to the current business, such as advertisements, duplicate content, or irrelevant topics. This results in inconsistent quality of the information documents obtained, making it difficult to guarantee the accuracy and usability of the information documents.
[0004] There is currently no effective solution to the problem that the low quality of information documents obtained in related technologies leads to low accuracy and usability of the information obtained from these documents. Summary of the Invention
[0005] The main objective of this application is to provide an information acquisition method, apparatus, and electronic device to solve the problem that the quality of information documents acquired in related technologies is low, resulting in low accuracy and usability of the information obtained from the information documents.
[0006] To achieve the above objectives, according to one aspect of this application, an information acquisition method is provided. The method includes: acquiring information documents related to a target financial business from different source websites, obtaining N information documents, where N is a positive integer; preprocessing each information document to obtain N text files, and generating a text vector for each text file, obtaining N text vectors; deleting isolated vectors from the N text vectors, obtaining M text vectors, and clustering the M text vectors to obtain P text vector sets, where M and P are both positive integers; grouping the information documents corresponding to each text vector in each text vector set into a group, obtaining P document sets, and determining the attribute information of each document set based on the attribute information of each information document; and selecting a target document set from the P document sets based on the attribute information of each document set and preset requirements.
[0007] Optionally, each information document is preprocessed to obtain N text files, including: for any information document, deleting all symbols in the information document to obtain candidate documents, and segmenting the candidate documents to obtain target documents; determining the part of speech of each word in the target document, and deleting words with the part of speech of the target type to obtain text files.
[0008] Optionally, generating a text vector for each text file to obtain N text vectors includes: determining a target feature information set based on the N text files, wherein the target feature information set includes Q target features, where Q is a positive integer; for any text file, calculating the weight values of each target feature in the target feature information set in the text file to obtain Q weight values; and using the Q weight values as text vectors for the text files to obtain text vectors.
[0009] Optionally, determining the target feature information set based on N text files includes: obtaining any word from the N text files and obtaining the number of text files containing the word to obtain a first quantity; determining whether the first quantity is within a first preset quantity range; if the first quantity is within the first preset quantity range, determining the word as a target feature; if the first quantity is not within the first preset quantity range, determining that the word is not a target feature; and after recognizing all the words in the N text files, combining the obtained Q target features into a target feature information set.
[0010] Optionally, calculating the weight values of each target feature in the target feature information set in the text file to obtain Q weight values includes: for any target feature in any text file, determining the number of times the target feature appears in the text file to obtain a second number; obtaining the number of text files containing the target feature in N text files to obtain a third number; and calculating the weight values of the target feature in the text file based on the second number and the third number.
[0011] Optionally, before deleting isolated vectors from N text vectors to obtain M text vectors, the method further includes: obtaining Q fourth quantities and constructing a target vector based on the Q fourth quantities, where the fourth quantity is the number of text files containing the target feature among the N text files; for any text vector, multiplying the weight value vector in the text vector with the transpose of the target vector to obtain the index value of the text vector; determining whether the index value is greater than a preset index threshold; if the index value is greater than or equal to the preset index threshold, determining that the text vector is not an isolated vector; if the index value is less than the preset index threshold, determining that the text vector is an isolated vector.
[0012] Optionally, clustering the M text vectors to obtain P text vector sets includes: calculating the similarity between each text vector and all other text vectors, and determining text vectors with similarity greater than a preset similarity threshold as a text vector set, thus obtaining multiple text vector sets; comparing the number of text vectors in each text vector set with a second preset number interval, and deleting text vector sets that are not located in the second preset number interval, thus obtaining P text vector sets.
[0013] Optionally, the attribute information for each document set is determined based on the attribute information of each information document, including: for any document set, obtaining the document source of each information document in the document set, and constructing a document source table based on the document source; calculating the overall attention of the document set based on the attention of each information document in the document set; determining the overall document type of the document set based on the document type of each information document in the document set; and determining the document source table, overall attention, and overall document type as the attribute information of the document set.
[0014] To achieve the above objectives, according to another aspect of this application, an information acquisition apparatus is provided. The apparatus includes: a first acquisition unit, configured to acquire information documents related to a target financial business from different source websites, obtaining N information documents, where N is a positive integer; a first processing unit, configured to preprocess each information document to obtain N text files, and generate a text vector for each text file, obtaining N text vectors; a second processing unit, configured to delete isolated vectors from the N text vectors, obtaining M text vectors, and cluster the M text vectors to obtain P text vector sets, where M and P are both positive integers; a first determining unit, configured to group the information documents corresponding to each text vector in each text vector set into a group, obtaining P document sets, and determining the attribute information of each document set based on the attribute information of each information document; and a selection unit, configured to select a target document set from the P document sets based on the attribute information of each document set and preset requirements.
[0015] To achieve the above objectives, according to another aspect of this application, an electronic device is provided, comprising a memory storing an executable program; and a processor for running the program, wherein the program executes the aforementioned method for acquiring information during runtime.
[0016] To achieve the above objectives, according to another aspect of this application, a computer program product is provided, including a non-volatile computer-readable storage medium storing a computer program, which, when executed by a processor, implements the steps of the above-described information acquisition method.
[0017] In this embodiment, information documents related to the target financial business are obtained from different source websites, resulting in N information documents, where N is a positive integer. Each information document is preprocessed to obtain N text files, and a text vector is generated for each text file, resulting in N text vectors. Isolated vectors are deleted from the N text vectors, resulting in M text vectors. These M text vectors are then clustered to obtain P text vector sets, where M and P are both positive integers. The information documents corresponding to each text vector in each text vector set are grouped into P document sets, and the attribute information of each document set is determined based on the attribute information of each information document. Based on the attribute information of each document set... Based on the attribute information and preset requirements, a target document set is selected from P document sets. This method obtains the text vectors of the information documents, removes outliers, and uses an incremental clustering mechanism to group semantically similar text vectors into the same cluster. Then, based on preset requirements and the attribute information of the document sets, the target document set is selected from multiple document sets. This achieves the goal of effectively filtering irrelevant and low-quality information, significantly improving the accuracy and usability of the obtained document set, and thus realizing the technical effect of improving the accuracy and usability of information obtained from information documents. This solves the technical problem in related technologies where the quality of information documents obtained is low, resulting in low accuracy and usability of information obtained from information documents. Attached Figure Description
[0018] The accompanying drawings, which form part of this application, are used to provide a further understanding of this application. The illustrative embodiments and descriptions of this application are used to explain this application and do not constitute an undue limitation of this application. In the drawings:
[0019] Figure 1 A hardware structure block diagram of a computer terminal for implementing an information acquisition method is shown.
[0020] Figure 2 This is a flowchart of the information acquisition method provided in Embodiment 1 of this application;
[0021] Figure 3 This is a schematic diagram of an information acquisition device according to Embodiment 2 of this application;
[0022] Figure 4 This is a structural block diagram of an electronic device according to an embodiment of this application. Detailed Implementation
[0023] It should be noted that, unless otherwise specified, the embodiments and features described in this application can be combined with each other. This application will now be described in detail with reference to the accompanying drawings and embodiments.
[0024] To enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present application, and not all embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative effort should fall within the scope of protection of the present application.
[0025] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of this application described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.
[0026] It should be noted that the information acquisition methods, devices, and electronic devices defined in this disclosure can be used in the field of big data, or in any field other than big data. The application fields of the information acquisition methods, devices, and electronic devices defined in this disclosure are not limited.
[0027] It should be noted that all information, user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, and displayed data) used in this application are information and data authorized by the user or fully authorized by all parties. Furthermore, the collection, storage, use, processing, transmission, provision, disclosure, and application of related data all comply with the relevant regulations and standards of the relevant regions, have taken necessary measures, do not violate public order and good morals, and provide corresponding operation entry points for users to choose to authorize or refuse use. If the user chooses to refuse, the process proceeds to the expert decision-making process. For example, this system has interfaces with relevant users or organizations. Before obtaining relevant information, a request to obtain the information needs to be sent to the aforementioned user or organization through the interface. After receiving consent from the aforementioned user or organization, the relevant information is obtained. Users can view the purpose of data use in real time through the authorization interface and have the right to withdraw authorization or delete data at any time. After authorization is withdrawn, the system will terminate the relevant data processing within 24 hours.
[0028] The embodiments or examples disclosed herein are not exhaustive, but merely illustrative of some embodiments or examples, and are not intended to limit the scope of protection of this disclosure. Unless otherwise specified, each step in a particular embodiment or example can be implemented as an independent embodiment, and the steps can be arbitrarily combined. For example, a solution after removing some steps in a particular embodiment or example can also be implemented as an independent embodiment, and the order of the steps in a particular embodiment or example can be arbitrarily interchanged. Furthermore, optional methods or examples in a particular embodiment or example can be arbitrarily combined; moreover, embodiments or examples can be arbitrarily combined. For example, some or all steps of different embodiments or examples can be arbitrarily combined, and a particular embodiment or example can be arbitrarily combined with optional methods or examples of other embodiments or examples.
[0029] Example 1
[0030] According to an embodiment of this application, an embodiment of an information acquisition method is also provided. It should be noted that the steps shown in the flowchart in the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions. Furthermore, although a logical order is shown in the flowchart, in some cases, the steps shown or described may be executed in a different order than that shown here.
[0031] The method embodiment provided in Embodiment 1 of this application can be executed on a mobile terminal, computer terminal, or similar computing device. Figure 1 A hardware block diagram of a computer terminal for implementing an information acquisition method is shown. Figure 1 As shown, the computer terminal 10 (or mobile device) may include one or more processors 102 (shown as 102a, 102b, ..., 102n in the figure) 102 (processor 102 may include, but is not limited to, processing devices such as microprocessors or programmable logic devices), a memory 104 for storing data, and a transmission device 106 for communication functions. In addition, it may also include: a display, an input / output interface, a universal serial bus port (which may be included as one of the ports of a BUS bus), a network interface, a power supply, and / or a camera. Those skilled in the art will understand that... Figure 1 The structure shown is for illustrative purposes only and does not limit the structure of the aforementioned electronic device. For example, computer terminal 10 may also include... Figure 1 The more or fewer components shown, or having the same Figure 1 The different configurations shown.
[0032] It should be noted that the aforementioned one or more processors 102 and / or other data processing circuits are generally referred to herein as "data processing circuits". These data processing circuits may be embodied, in whole or in part, in software, hardware, firmware, or any other combination thereof. Furthermore, the data processing circuits may be a single, independent processing module, or may be integrated, in whole or in part, into any other element within the computer terminal 10 (or mobile device). As involved in the embodiments of this application, the data processing circuits serve as a processor control mechanism (e.g., selection of a variable resistor termination path connected to an interface).
[0033] The memory 104 can be used to store software programs and modules of application software, such as the program instructions / data storage device corresponding to the information acquisition method in this embodiment. The processor 102 executes various functional applications and data processing by running the software programs and modules stored in the memory 104, thereby realizing the aforementioned information acquisition method. The memory 104 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 104 may further include memory remotely located relative to the processor 102, and these remote memories can be connected to the computer terminal 10 via a network. Examples of such networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof.
[0034] The transmission device 106 is used to receive or send data via a network. Specific examples of the network described above may include a wireless network provided by the communication provider of the computer terminal 10. In one example, the transmission device 106 includes a Network Interface Controller (NIC), which can connect to other network devices via a base station to communicate with the Internet. In another example, the transmission device 106 may be a Radio Frequency (RF) module, used for wireless communication with the Internet.
[0035] The display may be, for example, a touchscreen LCD display that allows the user to interact with the user interface of the computer terminal 10 (or mobile device).
[0036] Under the aforementioned operating environment, this application provides the following: Figure 2 The method for obtaining the information shown. Figure 2 This is a flowchart of the information acquisition method provided in Embodiment 1 of this application, such as... Figure 2 As shown, the method includes:
[0037] Step S201: Obtain information documents related to the target financial business from different source websites, resulting in N information documents, where N is a positive integer.
[0038] It should be noted that the execution entity in this embodiment can be an information acquisition system. When a financial institution needs to collect network information related to a certain financial business, the system can automatically acquire and process the network information to obtain information that is highly relevant to the financial business.
[0039] It should be noted that different source websites refer to multiple independent data sources that provide information and data, such as social media, news websites, forums, etc.; target financial business refers to the specific business published by financial institutions that needs to be analyzed; information documents refer to raw data units containing text content collected from the above data sources, such as blog posts, posts, news articles, etc.
[0040] For example, when acquiring information, the first step is to identify the target financial business to be processed, such as product A issued by a financial institution or business B offered by a financial institution. Subsequently, the system configures a data acquisition module to connect to data sources from different source websites and automatically retrieves and downloads original content related to the keywords or themes of the target financial business from the source websites, thereby obtaining N information documents. The acquired original content is packaged into information documents, which contain titles, links, summaries, body text, and metadata (such as publication time, author ID, etc.).
[0041] It should be noted that, in order to improve the diversity and comprehensiveness of the data, the system will acquire data from multiple heterogeneous data sources in parallel or serially. Each acquired information document is regarded as an independent data entity for subsequent processing. During the acquisition process, the system records the basic information of each data source, including data source ID, data source name, data source type, and data source link, in order to trace the source of the data.
[0042] Step S202: Preprocess each information document to obtain N text files, and generate a text vector for each text file to obtain N text vectors.
[0043] It should be noted that preprocessing refers to the process of cleaning, normalizing, and structuring the original information document; text file refers to a standardized text format that has been cleaned and segmented to remove useless symbols and noise while retaining effective semantic information; and text vector refers to a numerical array in the vector space model, consisting of multiple feature dimensions and their corresponding weight values, used to represent the semantic features of the text.
[0044] For example, after obtaining N information documents, the first step is to clean each document to filter out noise, which includes links, special characters, emojis, and meaningless punctuation marks. The cleaned text is then converted into a structured text file for easier subsequent processing.
[0045] Furthermore, data normalization is performed. For numerical features, a linear range transformation method is used to scale the feature values to the [0, 1] interval to eliminate the influence of different dimensions, avoid numerical difficulties caused by large numerical features in the calculation, and make the vector inner product calculation tend to be stable.
[0046] Furthermore, feature selection is performed. Document frequency methods can be used to extract the most representative features from the cleaned text, thereby reducing the dimensionality of the feature space. Then, the weight of each feature in a specific document is calculated. This weight can be determined by evaluating the importance of each word to the corpus.
[0047] Finally, based on the vector space model, each text file can be represented as a vector, with each dimension of the vector corresponding to a filtered feature term, and the value of that dimension being the weight of that feature term. After the above processing, the original N information documents are transformed into N mathematically meaningful text vectors, each vector accurately capturing the core semantic features of the document, providing standardized input data for subsequent clustering analysis.
[0048] Step S203: Delete isolated vectors from N text vectors to obtain M text vectors, and cluster the M text vectors to obtain P text vector sets, where M and P are both positive integers.
[0049] It should be noted that isolated vectors refer to text vectors that are far from other vectors in the feature space and lack sufficient similar neighbors, such as noise or irrelevant information; clustering refers to the process of grouping similar vectors into the same group based on the similarity between vectors; and a text vector set refers to a cluster containing semantically similar text vectors.
[0050] For example, after obtaining the text vectors, outlier preprocessing is required to remove outliers that affect the clustering results. Specifically, for each of the N text vectors, a metric value for its content is calculated, which is determined based on the frequency distribution of feature terms in the document set. If the calculated metric value is less than a set similarity threshold, the text vector is considered an outlier and is removed from the dataset; otherwise, the vector is retained, thus removing noisy or semantically ambiguous outliers, and the remaining vectors constitute M text vectors.
[0051] Furthermore, incremental clustering is performed on the M text vectors. The algorithm processes each text vector sequentially, treating the first retained vector as the initial center vector of a separate cluster. For each subsequent text vector, its distance (e.g., Euclidean distance or cosine similarity) to the center vectors of all existing clusters is calculated. If the calculated distance is less than a preset threshold, the text vector is assigned to the nearest cluster, and the center vector of that cluster is dynamically updated. The center vector update is achieved by accumulating the feature weights of all vectors within the cluster and normalizing them. If the distance is greater than the threshold, or if there are no sufficiently similar vectors in the existing clusters, a new cluster is created, and the vector is used as the center vector of the new cluster. After all M text vectors have been processed, P sets of text vectors are formed, each set containing a group of semantically similar vectors.
[0052] Step S204: Divide the information documents corresponding to each text vector in each text vector set into a group to obtain P document sets, and determine the attribute information of each document set according to the attribute information of each information document.
[0053] For example, attribute information refers to metadata that describes the characteristics of an information document or collection of documents, such as document source, document type, popularity trend, etc.
[0054] For example, after clustering the text vectors, for each of the P text vector sets, the system iterates through all the text vectors within it and finds the corresponding information document IDs from the original step S201. These corresponding information documents are then extracted and grouped according to their respective text vector sets, thus forming P document sets.
[0055] Furthermore, the system analyzes the attribute information of each document collection. The determination of attribute information is based on the attributes of each document that makes up the collection. For example, the system can statistically analyze the source distribution of documents to determine the main dissemination channels of the document collection; and calculate the sum of interaction data (such as the number of reposts, comments, and likes) of the documents in the collection to determine the popularity trend of the document collection.
[0056] Step S205: Select the target document set from the P document sets based on the attribute information and preset requirements of each document set.
[0057] It should be noted that preset requirements refer to the screening conditions or standards pre-set by financial institutions or business systems.
[0058] For example, after obtaining the attribute information of each document set, a target document set that meets the preset requirements can be selected from multiple document sets based on the attribute information of the document sets. For example, the preset requirements may include document type requirements, document quantity requirements, document popularity requirements, etc., so as to obtain the required document set from a large number of network files, and then further analysis operations can be performed on the documents in the document set to improve the effectiveness and efficiency of subsequent document analysis operations.
[0059] The information acquisition method provided in this application embodiment obtains N information documents related to the target financial business from different source websites, where N is a positive integer; preprocesses each information document to obtain N text files, and generates a text vector for each text file, resulting in N text vectors; deletes isolated vectors from the N text vectors, obtaining M text vectors, and clusters the M text vectors to obtain P text vector sets, where M and P are both positive integers; groups the information documents corresponding to each text vector in each text vector set into a group, obtaining P document sets, and determines the attribute information of each document set based on the attribute information of each information document; according to... The method of selecting a target document set from P document sets, based on the attribute information and preset requirements of each document set, obtains the text vectors of the information documents. After removing outliers, an incremental clustering mechanism is used to group semantically similar text vectors into the same cluster. Then, the target document set is selected from multiple document sets according to the preset requirements and the attribute information of the document sets. This achieves the goal of effectively filtering irrelevant and low-quality information, significantly improving the accuracy and usability of obtaining document sets, and thus realizing the technical effect of improving the accuracy and usability of information obtained from information documents. This solves the technical problem in related technologies where the quality of information documents obtained is low, resulting in low accuracy and usability of information obtained from information documents.
[0060] Optionally, in the information acquisition method provided in the embodiments of this application, preprocessing each information document to obtain N text files includes: for any information document, deleting all symbols in the information document to obtain candidate documents, and segmenting the candidate documents to obtain target documents; determining the part of speech of each word in the target document, and deleting words with the part of speech of the target type to obtain text files.
[0061] It should be noted that symbols refer to semantically meaningless characters other than specific tags; candidate documents refer to the intermediate state after removing symbols and retaining the basic text content; part-of-speech refers to the classification attribute of words in the grammatical structure; target type refers to the specific part-of-speech category that is judged to be worthless or low in information content.
[0062] For example, when preprocessing an information document, it is first necessary to delete all symbols in the information document. These symbols may include links, special characters, emojis, etc., and the text contained within the special symbols should also be deleted.
[0063] It should be noted that punctuation marks will not be deleted, nor will symbols with special meanings. For example, the symbol #bank message# may be a keyword in the document and therefore cannot be deleted. However, useless symbols, such as emojis, need to be deleted.
[0064] Furthermore, after removing special characters, word segmentation needs to be performed on the candidate documents. The word segmentation algorithm divides the continuous string sequence in the candidate document into independent lexical units according to language rules, forming a target document composed of a series of ordered words.
[0065] Furthermore, the system performs part-of-speech tagging on each word in the target document. The tagging process utilizes natural language processing technology to identify the grammatical function of each word in its context, such as noun, verb, adjective, particle, pronoun, preposition, etc. After determining the part of speech of each word, the system performs a filtering operation, deleting words with the target part of speech. The target part of speech refers to categories that contribute little to the expression of the topic or are general and lack distinctiveness, such as particles, pronouns, prepositions, and other function words, as well as some high-frequency general verbs. By deleting these target part-of-speech words, the system effectively reduces the proportion of noise in the data.
[0066] After part-of-speech filtering, the remaining vocabulary mainly consists of core nouns, time-related words, numerals, verbs, and adjectives—content words with strong semantic information. These retained words are then combined to form a text file of the information document. The text file is the standardized data output; it removes formatting noise and grammatical errors from the original document, retaining only key semantic units that reflect the document's core theme, thus providing a high-quality data foundation for subsequent vectorization processing.
[0067] This embodiment achieves efficient cleaning and noise reduction of information document content through symbol deletion, word segmentation, and part-of-speech filtering mechanisms, resulting in text files with higher semantic density and purity. This reduces the amount of data that needs to be processed in subsequent operations and improves execution efficiency.
[0068] Optionally, in the information acquisition method provided in this application embodiment, generating a text vector for each text file to obtain N text vectors includes: determining a target feature information set based on the N text files, wherein the target feature information set includes Q target features, where Q is a positive integer; for any text file, calculating the weight values of each target feature in the target feature information set in the text file to obtain Q weight values; and using the Q weight values as text vectors of the text file to obtain text vectors.
[0069] It should be noted that the target feature information set refers to the set of representative features selected from all text files; the target feature refers to the specific words or semantic units that constitute the target feature information set; and the weight value refers to the numerical index that measures the importance of a specific target feature in a specific text file.
[0070] For example, when constructing text vectors, it is first necessary to traverse N text files and select the most representative words as target features based on document frequency statistics. Specifically, the system counts the frequency of each word in the N text files, i.e., the number of text files containing that feature. Based on a preset frequency threshold range, words with excessively high frequencies that lack discriminative power or those with excessively low frequencies that lack representativeness are removed. Short characters with a string length less than 2 are also excluded. Finally, the remaining feature items after filtering constitute a target feature information set containing Q target features.
[0071] Furthermore, for any given text file, the system calculates the weight values of all Q target features in the target feature information set within that file, thus obtaining Q weight values. During the weight calculation operation, the ratio of term frequency to inverse document frequency can be used as the initial weight, and this initial weight is then normalized to obtain the weight value for each target feature in the target feature information set of each text file.
[0072] Finally, these Q weight values are arranged according to the fixed order of the target features in the set, forming a Q-dimensional numerical array, i.e., the text vector of the text file. Each dimension in this text vector corresponds to a target feature, and the value of that dimension is the corresponding weight value, which can be represented as: , where t n For the nth dimension feature, w n This represents the weight value of the nth feature.
[0073] Through the above process, N text files can be transformed into N text vectors. Each vector accurately quantifies the semantic features of the text files, providing a standardized mathematical expression for subsequent similarity calculations and cluster analysis.
[0074] This embodiment achieves the technical effect of accurately converting unstructured text files into structured numerical vectors by determining the target feature information set and calculating the weight value.
[0075] Optionally, in the information acquisition method provided in this application embodiment, determining the target feature information set based on N text files includes: acquiring any word located in the N text files, and acquiring the number of text files containing the word in the N text files to obtain a first quantity; determining whether the first quantity is within a first preset quantity range; if the first quantity is within the first preset quantity range, determining the word as a target feature; if the first quantity is not within the first preset quantity range, determining that the word is not a target feature; and after recognizing all the words in the N text files, combining the obtained Q target features into a target feature information set.
[0076] It should be noted that the first quantity refers to the statistical number of text files containing specific words, i.e., document frequency; the first preset quantity range refers to the effective range of the features used for filtering; and the target features refer to words that meet the conditions of the first preset quantity range and are retained for subsequent processing.
[0077] For example, when performing feature information filtering, the system first iterates through N text files and retrieves any word from them. For each retrieved word, the system counts the frequency of that word across all N text files. Specifically, this is expressed as the number of text files containing that word; this statistical result is called the first quantity. The first quantity reflects the breadth of the word's distribution in the overall corpus.
[0078] Furthermore, the system determines whether the first quantity falls within a first preset quantity interval. This first preset quantity interval sets two boundary values to exclude invalid features. If the first quantity is less than the lower limit of the first preset quantity interval, it indicates that the word's frequency is too low, lacking representativeness in the feature space, and may be noise or an extremely rare word. If the first quantity is greater than or equal to the upper limit of the first preset quantity interval, it indicates that the word's frequency is too high, appearing in almost all texts, making it impossible to effectively distinguish thematic differences between different texts. Therefore, only when the first quantity strictly falls within the first preset quantity interval—that is, greater than the lower limit and less than the upper limit—is the word determined as a target feature and retained.
[0079] If the first quantity is not within the first preset quantity range, i.e., the frequency is too high or too low, the system determines that the word is not a target feature and removes it from the feature space. The system repeats the above acquisition, statistics, and judgment process to traverse and recognize all words in N text files.
[0080] After completing the identification and filtering of all words, the final result is a set of target feature information containing Q target features.
[0081] This embodiment effectively removes noisy and redundant data from the feature space through a frequency-based interval filtering mechanism. Filtering out words with excessively low frequency avoids noise interference, while filtering out words with excessively high frequency eliminates generic terms that cannot distinguish topics, thus achieving the technical effect of reducing feature dimensionality.
[0082] Optionally, in the information acquisition method provided in this application embodiment, calculating the weight value of each target feature in the target feature information set in the text file to obtain Q weight values includes: for any target feature in any text file, determining the number of times the target feature appears in the text file to obtain a second number; obtaining the number of text files containing the target feature in N text files to obtain a third number; and calculating the weight value of the target feature in the text file based on the second number and the third number.
[0083] It should be noted that the weight value refers to a numerical indicator that measures the importance of the target feature in a specific text; the second quantity refers to the frequency of the target feature in a single text file; and the third quantity refers to the total number of text files containing the target feature.
[0084] For example, when determining the weight value corresponding to each target feature in each text file, the system first performs a frequency statistics operation for each of the N text files and each target feature in the target feature information set. For any target feature in any text file, the system iterates through the content of the text file and counts the total number of times the target feature appears in the text file. This statistical result is defined as the second quantity. The second quantity reflects the density of the target feature in the local text.
[0085] Furthermore, the system obtains global statistical information, specifically the total number of text files containing the target feature out of N text files. This statistical result is defined as the third quantity. The third quantity reflects the breadth of the target feature's distribution in the global corpus.
[0086] Finally, the system calculates the weight values of the target features in the text file based on the second and third quantities. This can be calculated using the following formula:
[0087]
[0088] in, This represents the weight of the j-th word in the i-th text file. This represents the frequency of the j-th word in the i-th text file, also known as the second frequency. nij This represents the number of text files containing the j-th word, also known as the third word, while N represents the total number of text files.
[0089] This embodiment achieves the technical effect of accurately determining the weight values of target features by calculating the second and third quantities and then calculating the weight values of each target feature in the text vector corresponding to each text file based on the second and third quantities.
[0090] Optionally, in the information acquisition method provided in this application embodiment, before deleting isolated vectors from N text vectors to obtain M text vectors, the method further includes: obtaining Q fourth quantities and constructing a target vector based on the Q fourth quantities, wherein the fourth quantity is the number of text files containing the target feature among the N text files; for any text vector, multiplying the weight value vector in the text vector with the transpose of the target vector to obtain the index value of the text vector; determining whether the index value is greater than a preset index threshold; if the index value is greater than or equal to the preset index threshold, determining that the text vector is not an isolated vector; if the index value is less than the preset index threshold, determining that the text vector is an isolated vector.
[0091] It should be noted that an isolated vector refers to a text vector that lacks similarity to other vectors in the feature space and represents noise or anomalous data; a target vector refers to a global statistical vector composed of the fourth quantity of all target features; an index value refers to a numerical value obtained through vector operations to evaluate the degree of non-isolation of a text vector; and a preset index threshold refers to a critical value used to distinguish between isolated and non-isolated vectors.
[0092] For example, when determining an isolated vector, it is first necessary to calculate the target vector corresponding to the target feature information set. When calculating the target vector, the fourth quantity of each target feature is calculated first. The fourth quantity is the number of text files containing that target feature.
[0093] After obtaining the fourth quantity of each target feature, a target vector can be constructed from the fourth quantity, and the transpose of the target vector can be calculated to obtain the transpose vector as follows:
[0094] T1=
[0095] Where T1 is the transpose vector. This is the fourth quantity of the nth target feature, which is also the number of text files containing the nth target feature.
[0096] Furthermore, after obtaining the transpose vector, for each text vector, the dot product of the text vector and the transpose vector can be calculated to obtain the index value of that text vector, which is then compared with a preset index threshold. The judgment logic is as follows: when the index value is greater than or equal to the preset index threshold, it indicates that the text vector is sufficiently representative and does not belong to abnormal data; therefore, the text vector is determined not to be an isolated vector and is retained. When the index value is less than the preset index threshold, it indicates that the text vector deviates from the mainstream distribution and may be noise or an isolated point; therefore, the text vector is determined to be an isolated vector and is deleted. By traversing each text vector and filtering the text vectors, M non-isolated vectors are obtained, which are the valid text vectors.
[0097] This embodiment achieves the technical effect of accurately identifying isolated vectors based on the index values by constructing a global target vector and using vector operations to calculate the index values.
[0098] Optionally, in the information acquisition method provided in the embodiments of this application, clustering M text vectors to obtain P text vector sets includes: calculating the similarity between each text vector and other text vectors, and determining text vectors with similarity greater than a preset similarity threshold as a text vector set, thereby obtaining multiple text vector sets; comparing the number of text vectors in each text vector set with a second preset number interval, and deleting text vector sets that are not located in the second preset number interval, thereby obtaining P text vector sets.
[0099] It should be noted that similarity refers to a numerical indicator that measures how close two text vectors are in semantic space; the preset similarity threshold refers to the critical value for judging whether two text vectors belong to the same set; a text vector set refers to a cluster or group composed of semantically similar text vectors; and the second preset quantity range refers to the size range used to filter the effective vector set.
[0100] For example, when constructing a set of text vectors, the first step is to calculate pairwise similarity among the M text vectors. For any one of the M text vectors, the system calculates its similarity with all the other M-1 text vectors. The similarity calculation can be performed using cosine similarity or Euclidean distance transformation; a higher value indicates that the two vectors are closer in the feature space and more semantically similar.
[0101] Furthermore, the system performs clustering based on a preset similarity threshold. When the similarity between two text vectors exceeds the preset similarity threshold, the system merges these two text vectors into the same text vector set. Through this threshold-based connection or merging operation, the system forms multiple initial text vector sets, each containing a group of text vectors with high similarity to each other.
[0102] Furthermore, after obtaining multiple text vector sets, a filtering operation is required. The system counts the number of text vectors in each text vector set and compares the number of text vectors in each set with a second preset number range. If the number of text vectors in a certain text vector set does not fall within the second preset number range (e.g., too few or too many), the text vector set that does not meet the quantity requirement is determined as an invalid set and deleted. Only text vector sets whose number of text vectors falls within the second preset number range are retained, ultimately resulting in P text vector sets.
[0103] This embodiment calculates the similarity between text vectors and performs clustering, thereby automatically classifying semantically similar information to form a preliminary set. By introducing a second preset quantity range based on the number of text vectors for filtering, invalid clustering results that are too small or too large are effectively eliminated, thus achieving the technical effect of improving the effectiveness and accuracy of the final text vector set.
[0104] Optionally, in the information acquisition method provided in this application embodiment, determining the attribute information of each document set based on the attribute information of each information document includes: for any document set, obtaining the document source of each information document in the document set, and constructing a document source table based on the document source; calculating the comprehensive attention of the document set based on the attention of each information document in the document set; determining the comprehensive document type of the document set based on the document type of each information document in the document set; and determining the document source table, comprehensive attention, and comprehensive document type as the attribute information of the document set.
[0105] It should be noted that: document source refers to the original data source from which the information is generated; document source table refers to the statistical structure that records the distribution of the sources of each information document in the document collection; attention refers to numerical indicators that reflect the scope of dissemination and interaction intensity of information documents, such as the number of reposts, comments, and likes; comprehensive attention refers to the overall popularity indicator obtained by aggregating the attention of each document in the collection; document type refers to the content format of the information document, such as blog posts, posts, news articles, etc.; comprehensive document type refers to the classification tags that reflect the main composition of the document collection.
[0106] For example, for any document collection, the system iterates through all the information documents contained therein and extracts the document source for each document. The document source includes metadata such as data source ID, data source name, and data source type. The system then counts the number or proportion of information documents from different data sources in the document collection and constructs a document source table accordingly.
[0107] Furthermore, the system obtains the attention data of each information document in the document collection. Attention data can include interaction metrics such as the number of reposts, comments, and likes. The system uses aggregation algorithms such as weighted summation or averaging to integrate the attention data of these individual documents and calculate the overall attention of the document collection.
[0108] Furthermore, the system determines the overall document type of the document collection. The system statistically analyzes the document type (such as blog posts, posts, news, etc.) and its proportion of each information document in the collection, and determines the overall document type of the document collection according to preset rules (such as selecting the type with the highest proportion or the majority rule).
[0109] Finally, the system combines the generated document source table, the calculated overall attention score, and the determined overall document type to define the attribute information of the document collection. This attribute information constitutes a high-level semantic description of the document collection, providing multi-dimensional criteria for subsequent demand-based document selection.
[0110] This embodiment achieves the technical effect of accurately determining the attribute information of a document collection by determining the attribute information of the document based on the document's attributes, thereby improving the accuracy of subsequent operations that select documents from the corresponding document collection based on the attribute information.
[0111] It should be noted that the steps shown in the flowchart in the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions, and although a logical order is shown in the flowchart, in some cases the steps shown or described may be executed in a different order than that shown here.
[0112] Example 2
[0113] This application also provides an information acquisition device. It should be noted that the information acquisition device of this application can be used to execute the information acquisition method provided in the above embodiments. The information acquisition device provided in this application is described below.
[0114] According to an embodiment of this application, an apparatus for implementing the above-described information acquisition method is also provided. Figure 3 This is a schematic diagram of an information acquisition device according to Embodiment 2 of this application, as shown below. Figure 3 As shown, the device includes:
[0115] The first acquisition unit 31 is used to acquire information documents related to the target financial business from different source websites, and obtain N information documents, where N is a positive integer.
[0116] The first processing unit 32 is used to preprocess each information document to obtain N text files, and generate a text vector for each text file to obtain N text vectors.
[0117] The second processing unit 33 is used to delete isolated vectors from N text vectors to obtain M text vectors, and to cluster the M text vectors to obtain P sets of text vectors, where M and P are both positive integers.
[0118] The first determining unit 34 is used to group the information documents corresponding to each text vector in each text vector set into a group to obtain P document sets, and to determine the attribute information of each document set according to the attribute information of each information document.
[0119] Selection unit 35 is used to select the target document set from P document sets based on the attribute information and preset requirements of each document set.
[0120] The information acquisition device provided in this application embodiment acquires information documents related to the target financial business from different source websites through a first acquisition unit 31, obtaining N information documents, where N is a positive integer; a first processing unit 32 preprocesses each information document to obtain N text files, and generates a text vector for each text file, obtaining N text vectors; a second processing unit 33 deletes isolated vectors from the N text vectors to obtain M text vectors, and performs clustering processing on the M text vectors to obtain P text vector sets, where M and P are both positive integers; a first determining unit 34 groups the information documents corresponding to each text vector in each text vector set into a group, obtaining P document sets, and determines the attribute information of each document set according to the attribute information of each information document; a selection unit 35 selects a target document set from the P document sets according to the attribute information of each document set and preset requirements. By acquiring the text vectors of information documents and removing outliers, an incremental clustering mechanism is used to group semantically similar text vectors into the same cluster. Then, based on preset requirements and the attribute information of the document set, a target document set is selected from multiple document sets. This achieves the goal of effectively filtering irrelevant and low-quality information and significantly improving the accuracy and usability of acquiring document sets. This technical effect improves the accuracy and usability of information obtained from information documents, thereby solving the technical problem in related technologies where the quality of information documents is low, resulting in low accuracy and usability of information obtained from information documents.
[0121] Optionally, in the information acquisition device provided in the embodiments of this application, the first processing unit 32 includes: a first deletion module, used to delete all symbols in any information document to obtain a candidate document, and to perform word segmentation on the candidate document to obtain a target document; and a second deletion module, used to determine the part of speech of each word in the target document, and to delete words whose part of speech is the target type to obtain a text file.
[0122] Optionally, in the information acquisition device provided in the embodiments of this application, the first processing unit 32 includes: a first determining module, configured to determine a target feature information set based on N text files, wherein the target feature information set includes Q target features, where Q is a positive integer; a first calculating module, configured to calculate the weight values of each target feature in the target feature information set in the text file for any given text file, thereby obtaining Q weight values; and a second determining module, configured to use the Q weight values as text vectors of the text files, thereby obtaining text vectors.
[0123] Optionally, in the information acquisition device provided in this application embodiment, the first determining module includes: a first acquisition submodule, used to acquire any word located in N text files and acquire the number of text files containing the word in the N text files to obtain a first quantity; a judging submodule, used to judge whether the first quantity is within a first preset quantity range; a first determining submodule, used to determine the word as a target feature when the first quantity is within the first preset quantity range; a second determining submodule, used to determine that the word is not a target feature when the first quantity is not within the first preset quantity range; and a processing submodule, used to combine the obtained Q target features into a target feature information set after recognizing all words in the N text files.
[0124] Optionally, in the information acquisition device provided in the embodiments of this application, the first calculation module includes: a third determining submodule, used to determine the number of times the target feature appears in any text file for any target feature in any text file, and obtain a second quantity; a second acquisition submodule, used to acquire the number of text files containing the target feature in N text files, and obtain a third quantity; and a calculation submodule, used to calculate the weight value of the target feature in the text file based on the second quantity and the third quantity.
[0125] Optionally, in the information acquisition device provided in this application embodiment, before deleting isolated vectors from N text vectors to obtain M text vectors, the device further includes: a second acquisition unit, used to acquire Q fourth quantities and construct a target vector based on the Q fourth quantities, wherein the fourth quantity is the number of text files containing the target feature among the N text files; a calculation unit, used to multiply the weight value vector in any text vector by the transpose of the target vector to obtain the index value of the text vector; a judgment unit, used to judge whether the index value is greater than a preset index threshold; a second determination unit, used to determine that the text vector is not an isolated vector if the index value is greater than or equal to the preset index threshold; and a third determination unit, used to determine that the text vector is an isolated vector if the index value is less than the preset index threshold.
[0126] Optionally, in the information acquisition device provided in the embodiments of this application, the second processing unit 33 includes: a second calculation module, used to calculate the similarity between each text vector and other text vectors, and to determine the text vectors with similarity greater than a preset similarity threshold as a text vector set, thereby obtaining multiple text vector sets; and a third deletion module, used to compare the number of text vectors in each text vector set with a second preset number interval, and to delete the text vector sets that are not located in the second preset number interval, thereby obtaining P text vector sets.
[0127] Optionally, in the information acquisition device provided in the embodiments of this application, the first determining unit 34 includes: an acquisition module, used to acquire the document source of each information document in any document set, and construct a document source table based on the document source; a third calculation module, used to calculate the comprehensive attention of the document set based on the attention of each information document in the document set; a third determining module, used to determine the comprehensive document type of the document set based on the document type of each information document in the document set; and a fourth determining module, used to determine the document source table, comprehensive attention, and comprehensive document type as attribute information of the document set.
[0128] It should be noted that the first acquisition unit 31, the first processing unit 32, the second processing unit 33, the first determination unit 34, and the selection unit 35 mentioned above correspond to steps S201 to S205 in Embodiment 1. The instances and application scenarios implemented by each of the above units and the corresponding steps are the same, but are not limited to the content disclosed in Embodiment 1. It should be noted that the above modules or units can be hardware or software components stored in memory (e.g., memory 104) and processed by one or more processors (e.g., processors 102a, 102b, ..., 102n). The above modules can also be part of a device and can run in the computer terminal 10 provided in Embodiment 1.
[0129] Example 3
[0130] Embodiments of this application may provide an electronic device. Figure 4 This is a structural block diagram of an electronic device according to an embodiment of this application. Figure 4 As shown, the electronic device may include: one or more ( Figure 4 (Only one is shown) processor 1002, memory 1004, memory controller, and peripheral interface, wherein the peripheral interface is connected to the radio frequency module, audio module and display.
[0131] The memory can be used to store software programs and modules, such as the program instructions / modules corresponding to the methods and apparatus in the embodiments of this application. The processor executes various functional applications and data processing by running the software programs and modules stored in the memory, thereby implementing the above-described methods. The memory may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory may further include memory remotely located relative to the processor, and these remote memories can be connected to the terminal via a network. Examples of such networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof.
[0132] Those skilled in the art will understand that Figure 4 The structure shown is for illustrative purposes only. Electronic devices can also be smartphones, tablets, handheld computers, mobile internet devices (MIDs), PADs, and other terminal devices. Figure 4 This does not limit the structure of the aforementioned electronic device. For example, electronic devices may also include components that are more... Figure 4 The more or fewer components shown (such as network interfaces, display devices, etc.), or having the same Figure 4 The different configurations shown.
[0133] Those skilled in the art will understand that all or part of the steps in the various methods of the above embodiments can be implemented by a program instructing the hardware related to the terminal device. The program can be stored in a computer-readable storage medium, which may include: flash drive, read-only memory (ROM), random access memory (RAM), disk or optical disk, etc.
[0134] Example 4
[0135] Embodiments of this application also provide a storage medium. Optionally, in this embodiment, the storage medium can be used to store the program code executed by the information acquisition method provided in Embodiment 1.
[0136] Optionally, in this embodiment, the storage medium may be located in any computer terminal in a group of computer terminals in a computer network, or in any mobile terminal in a group of mobile terminals.
[0137] Embodiments of this application also provide a computer program product, including a non-volatile computer-readable storage medium storing a computer program, which, when executed by a processor, implements the method for obtaining the aforementioned information.
[0138] Embodiments of this application also provide a computer-readable storage medium, which includes a stored executable program, wherein the executable program controls the device where the computer-readable storage medium is located to execute the above-described method for obtaining information when it runs.
[0139] The sequence numbers of the embodiments in this application are for descriptive purposes only and do not represent the superiority or inferiority of the embodiments.
[0140] In the above embodiments of this application, the descriptions of each embodiment have different focuses. For parts not described in detail in a certain embodiment, please refer to the relevant descriptions of other embodiments.
[0141] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. The device embodiments described above are merely illustrative; for example, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the displayed or discussed mutual coupling, direct coupling, or communication connection may be through some interfaces; the indirect coupling or communication connection between units or modules may be electrical or other forms.
[0142] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0143] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.
[0144] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as a USB flash drive, read-only memory (ROM), random access memory (RAM), portable hard drive, magnetic disk, or optical disk.
[0145] The above description is only a preferred embodiment of this application. It should be noted that for those skilled in the art, several improvements and modifications can be made without departing from the principle of this application, and these improvements and modifications should also be considered within the scope of protection of this application.
Claims
1. An information acquisition method characterized by comprising: include: Obtain information documents related to the target financial business from different source websites, resulting in N information documents, where N is a positive integer; Each information document is preprocessed to obtain N text files, and a text vector is generated for each text file, resulting in N text vectors; Delete isolated vectors from the N text vectors to obtain M text vectors, and then cluster the M text vectors to obtain P text vector sets, where M and P are both positive integers; The information documents corresponding to each text vector in each text vector set are grouped into P document sets, and the attribute information of each document set is determined according to the attribute information of each information document. Based on the attribute information and preset requirements of each document set, a target document set is selected from the P document sets.
2. The method of claim 1, wherein, Each information document is preprocessed to obtain N text files, including: For any given information document, delete all symbols in the information document to obtain candidate documents, and then segment the candidate documents to obtain the target document; The part-of-speech tag of each word in the target document is determined, and words with the target part-of-speech tag are deleted to obtain the text file.
3. The method of claim 1, wherein, Generate a text vector for each text file, resulting in N text vectors, including: A target feature information set is determined based on N text files, wherein the target feature information set includes Q target features, where Q is a positive integer; For any text file, calculate the weight value of each target feature in the target feature information set in the text file to obtain Q weight values; The Q weight values are used as the text vector of the text file to obtain the text vector.
4. The method of claim 3, wherein, The target feature information set is determined based on N text files, including: Obtain any one word from the N text files, and obtain the number of text files containing the word from the N text files to obtain a first quantity; Determine whether the first quantity is within the first preset quantity range; If the first quantity is within the first preset quantity range, the word is determined to be the target feature; If the first quantity is not within the first preset quantity range, it is determined that the word is not the target feature; After recognizing all words in the N text files, the resulting Q target features are combined into the target feature information set.
5. The method of claim 3, wherein, Calculate the weight value of each target feature in the target feature information set in the text file to obtain Q weight values, including: For any target feature in any text file, determine the number of times the target feature appears in the text file to obtain the second number; Obtain the number of text files containing the target feature from the N text files to obtain the third number; The weight value of the target feature in the text file is calculated based on the second quantity and the third quantity.
6. The method of claim 1, wherein, Before deleting isolated vectors from the N text vectors to obtain M text vectors, the method further includes: Obtain Q fourth quantities and construct a target vector based on the Q fourth quantities, wherein the fourth quantity is the number of text files containing the target features among the N text files; For any text vector, multiply the weight value vector in the text vector with the transpose of the target vector to obtain the index value of the text vector. Determine whether the indicator value is greater than a preset indicator threshold; If the indicator value is greater than or equal to the preset indicator threshold, it is determined that the text vector is not the isolated vector; If the indicator value is less than the preset indicator threshold, the text vector is determined to be the isolated vector.
7. The method of claim 1, wherein, Clustering the M text vectors yields a set of P text vectors, including: Calculate the similarity between each text vector and all other text vectors, and determine the text vectors with similarity greater than a preset similarity threshold as a text vector set, thus obtaining multiple text vector sets; The number of text vectors in each text vector set is compared with the second preset number range, and the text vector sets that are not located in the second preset number range are deleted to obtain the P text vector sets.
8. The method according to claim 1, characterized in that, Based on the attribute information of each information document, the attribute information of each document collection is determined to include: For any document set, obtain the document source of each information document in the document set, and construct a document source table based on the document source; The overall attention score of the document collection is calculated based on the attention score of each information document in the document collection. The overall document type of the document collection is determined based on the document type of each information document in the document collection; The document source table, the overall attention level, and the overall document type are determined as the attribute information of the document set.
9. An information acquisition device, characterized in that, include: The first acquisition unit is used to acquire information documents related to the target financial business from different source websites, resulting in N information documents, where N is a positive integer; The first processing unit is used to preprocess each information document to obtain N text files, and generate a text vector for each text file to obtain N text vectors; The second processing unit is used to delete isolated vectors from the N text vectors to obtain M text vectors, and to cluster the M text vectors to obtain P text vector sets, where M and P are both positive integers; The first determining unit is used to group the information documents corresponding to each text vector in each text vector set into a group to obtain P document sets, and to determine the attribute information of each document set according to the attribute information of each information document. The selection unit is used to select a target document set from the P document sets based on the attribute information and preset requirements of each document set.
10. An electronic device, characterized in that, include: Memory, which stores executable programs; A processor for running the program, wherein the program, when running, performs the information acquisition method according to any one of claims 1 to 8.
