Information processing device, information processing method, and information processing program
By removing hashtags from SNS content and using a Transformer model to align vectors for similar themes, the device enhances content classification accuracy in SNS platforms.
Patent Information
- Application Number
- JP2023069608
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-04-20
- Publication Date
- 2024-10-31
- Estimated Expiration
- 2043-04-20
AI Technical Summary
Conventional content classification methods fail to accurately reflect the theme indicated by hashtags and events in social networking services (SNS) content, leading to inadequate classification of content.
An information processing device that acquires content from SNS, removes a portion of the hashtags, and uses a natural language processing model like Transformer to convert the content into vectors, training the model to make vectors for content with common themes similar, thereby understanding both the hashtag and text themes.
The solution enables a model that accurately classifies content by reflecting both the theme indicated by hashtags and the underlying text events, improving content classification accuracy.
Smart Images

Figure 2024155156000001_ABST
Abstract
Description
[Technical field]
[0001] The present invention relates to an information processing device, an information processing method, and an information processing program. [Background technology]
[0002] 2. Description of the Related Art Conventionally, there are services that provide various types of content. For example, such services may provide various types of content posted by users on microblogs, SNS (Social Networking Services), and the like. [Prior art documents] [Patent documents]
[0003] [Patent Document 1] Patent Publication No. 2022-47013 Summary of the Invention [Problem to be solved by the invention]
[0004] However, in the conventional technology, although each piece of content is classified by theme and content that matches the theme is provided, there is room for improvement in terms of appropriate classification of content.
[0005] The present invention has been made in consideration of the above, and aims to provide an information processing device, an information processing method, and an information processing program that can provide a model capable of appropriately classifying content. [Means for solving the problem]
[0006] In order to solve the above-mentioned problems and achieve the objective, the information processing device of the present invention includes an acquisition unit that acquires content information including content and theme information of the content, and a learning unit that uses the content acquired by the acquisition unit, from which some of the theme information has been removed, as learning data and trains a model that converts the content into a vector. Effect of the Invention
[0007] According to the present invention, it is possible to provide a model capable of appropriately classifying content. [Brief description of the drawings]
[0008] [Figure 1] FIG. 1 is a diagram illustrating an example of information processing according to an embodiment. [Diagram 2] FIG. 2 is a block diagram illustrating an example of the configuration of the information processing device according to the embodiment. [Diagram 3] FIG. 3 is a diagram illustrating an example of information stored in the content information storage unit according to the embodiment. [Figure 4] FIG. 4 is a flowchart illustrating an example of a processing procedure of the learning process according to the embodiment. [Diagram 5] FIG. 5 is a hardware configuration diagram showing an example of a computer that realizes the functions of the information processing device according to the embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0009] Hereinafter, the information processing device, the information processing method, and the information processing program according to the present application will be described in detail with reference to the drawings. Note that the information processing device, the information processing method, and the information processing program according to the present application are not limited to the embodiments.
[0010] [Embodiment] [1. Information Processing] First, an example of information processing according to the embodiment will be described with reference to Fig. 1. Fig. 1 is a diagram showing an example of information processing according to the embodiment. Note that the information processing according to the embodiment is realized by an information processing device 1 shown in Fig. 1.
[0011] 1 is an information processing device that performs model learning for converting content composed of text information into vectors. For example, the information processing device 1 performs model learning based on content posted to various SNSs (Social Networking Services) operated by an SNS server 200.
[0012] 1 is a server device that operates various media sites such as a news site, etc. The distribution server 100 provides news content to users.
[0013] 1 is a server device that operates various SNS (Social Networking Services). For example, the SNS server 200 provides content including text, images, videos, etc. posted by users to other users.
[0014] For example, content posted on a social networking site may include a hashtag, which is generally used to represent the theme of the posted content or an event related to the theme.
[0015] For example, by learning the text of content with common hashtags as events that represent the theme indicated by the hashtag, it is possible to generate a model that understands hashtags. However, such a model has the problem of having a poor understanding of the text.
[0016] Furthermore, if we remove the hashtags and study text that shares common hashtags, we can generate a model that understands the theme of the text. However, such a model will not be able to understand the hashtags because it has not yet learned about them.
[0017] In other words, when classifying content, the challenge is to more accurately reflect the theme indicated by the hashtag and the phenomenon that represents the theme in the vector.
[0018] Therefore, the information processing device 1 according to the embodiment removes some hashtags from a plurality of contents and performs model learning. Specifically, as shown in Fig. 1, the information processing device 1 first acquires contents from the SNS server 200 (step S1).
[0019] Next, the information processing device 1 generates learning data (step S2). In the example shown in Fig. 1, the posted information tw1 is "#Japan National Team Was Amazing at the World Cup #Japan National Football Team" and includes two hashtags, "#World Cup" and "#Japan National Football Team".
[0020] For example, in this case, the information processing device 1 generates, as learning data, posted information tw2 "#Japan National Team Was Amazing at the World Cup" with the hashtag "#Japan National Team Soccer" removed.
[0021] As another example, the information processing device 1 may generate, as learning data, posted information tw3 "Japan was amazing at the World Cup #Japan national soccer team" by removing the "#" from the hashtag at the beginning of the sentence and embedding the hashtag "#World Cup" in the text. In this way, the information processing device 1 converts a part of the posted information tw by embedding a hashtag in the text or deleting the hashtag, thereby generating learning data.
[0022] For example, the information processing device 1 performs a process of removing hashtags from a predetermined percentage (for example, 50%) of the posted information tw. In other words, the remaining 50% of the posted information tw itself becomes learning data. Note that the number 50% here can be changed arbitrarily.
[0023] Next, the information processing device 1 performs model learning based on the prepared learning data (step S3). As shown in Fig. 1, the model is used to convert the posted information twa and the posted information twb having a common theme (hashtag) into corresponding vectors Va and Vb.
[0024] Then, the information processing device 1 performs model learning so that the vector Va and the vector Vb become similar vectors. Note that the model here may be, for example, a natural language processing model such as Transformer.
[0025] Furthermore, the information processing device 1 converts the hashtag and the text of the posted information tw into vectors using the model, and learns the model so that both vectors become similar vectors.
[0026] In other words, hashtags are removed from some of the posted information tw, while hashtags are left in the remaining posted information tw. Each piece of posted information tw is then converted into a vector using a model, and the model is trained so that vectors of posted information tw with a common theme (hashtag) become similar vectors.
[0027] This allows the information processing device 1 to learn a model that can understand both the hashtag and the text of the posted information tw. In other words, these processes enable learning of a model that more accurately reflects both the theme indicated by the hashtag and the event that represents the theme in the vector.
[0028] In other words, such a model can convert content into more appropriate vectors that can then be used to properly classify the content.
[0029] [2. Information Processing Device] Next, a configuration example of the information processing device 1 according to the embodiment will be described with reference to Fig. 2. Fig. 2 is a block diagram showing a configuration example of the information processing device 1 according to the embodiment. As shown in Fig. 2, the information processing device 1 includes a communication unit 2, a storage unit 3, and a control unit 4. Note that the information processing device 1 may also include an input unit (e.g., a keyboard, a mouse, etc.) that receives various operations from an administrator who uses the information processing device 1, and a display unit (e.g., a liquid crystal display, etc.) that displays various information.
[0030] The communication unit 2 is realized by, for example, a network interface card (NIC), etc. The communication unit 2 is connected to a communication network such as 4G (4th Generation) or 5G (5th Generation) by wire or wirelessly, and transmits and receives information to and from the distribution server 100, the SNS server 200, etc. via the communication network.
[0031] The storage unit 3 is realized by, for example, a semiconductor memory element such as a random access memory (RAM) or a flash memory, or a storage device such as a hard disk or an optical disk. The storage unit 3 includes a content information storage unit 31 and a model storage unit 32.
[0032] The content information storage unit 31 stores content information. The content information is, for example, information on various contents posted on an SNS. Fig. 3 is a diagram showing an example of information stored in the content information storage unit 31 according to the embodiment.
[0033] 3, the content information storage unit 31 stores information items such as "content ID," "hashtag," and "main text" in association with each other. The "content ID" item stores an identifier for identifying each piece of content.
[0034] The "hashtag" item stores information about the hashtag of the content identified by the corresponding content ID. If the content has multiple hashtags, each of the hashtags is stored in the "hashtag" item.
[0035] The "Body" item stores information about the body of the content identified by the corresponding content ID. Note that the body is text, but may also include images and videos.
[0036] Returning to the description of FIG. 2, the model storage unit 32 will be described. The model storage unit 32 stores a model. The model is, for example, a natural language processing model such as Transformer. As will be described later, the model storage unit 32 stores a model that has been learned by the learning unit 43.
[0037] Next, the control unit 4 will be described. The control unit 4 is a controller, and is realized, for example, by a CPU (Central Processing Unit) or an MPU (Micro Processing Unit) executing various programs (corresponding to an example of an information processing program) stored in a storage device inside the information processing device 1 using a RAM as a working area. The control unit 4 is also, for example, a controller, and is realized by an integrated circuit such as an ASIC (Application Specific Integrated Circuit) or an FPGA (Field Programmable Gate Array).
[0038] As shown in Fig. 2, the control unit 4 includes an acquisition unit 41, a generation unit 42, a learning unit 43, and a provision unit 44, and realizes or executes the functions and actions of information processing described below. The internal configuration of the control unit 4 is not limited to the configuration shown in Fig. 2, and may be other configurations as long as they perform the information processing described below. Furthermore, the connection relationship between the processing units in the control unit 4 is not limited to the connection relationship shown in Fig. 2, and may be other connection relationships.
[0039] The acquisition unit 41 acquires content posted to the SNS. For example, the acquisition unit 41 acquires the posted information tw as content from the SNS server 200 and registers it in the content information storage unit 31. At this time, the acquisition unit 41 may acquire all the posted information tw, or may acquire the posted information tw including a specific hashtag.
[0040] For example, the acquisition unit 41 may acquire posted information tw including a hashtag designated by an administrator or the like, or posted information tw including a hashtag that is trending on an SNS.
[0041] The generation unit 42 generates learning data for the model based on the posted information tw acquired by the acquisition unit 41. Specifically, the generation unit 42 generates the learning data by removing hashtags from a portion of the posted information tw. More specifically, the generation unit 42 extracts posted information tw including a common hashtag from the content information storage unit 31, and performs a process of removing the hashtag from a portion of the posted information tw.
[0042] For example, as shown in FIG. 1, for some of the posted information tw, the generation unit 42 performs a process of assimilating the hashtag into the main text by removing the "#" from the hashtag at the beginning of the sentence, or removing the hashtag by deleting the hashtag at the end of the sentence.
[0043] Then, the generation unit 42 executes these processes for each hashtag and passes the generated learning data to the learning unit 43.
[0044] The learning unit 43 uses the content obtained by removing some of the theme information from the content information acquired by the acquisition unit 41 as learning data, and causes the learning unit 43 to learn a model that converts the content into a vector.
[0045] The learning unit 43 learns the model using the learning data generated by the generation unit 42. Specifically, the learning unit 43 inputs, into the model, posted information tw having a common theme, some of which has had hashtags removed and the rest of which has the hashtags left as is, and obtains vectors.
[0046] Then, the learning unit 43 learns the model so that vectors output from the model become similar vectors. For example, the learning unit 43 adjusts each parameter of the model to learn the model so that vectors of posted information tw with a common theme become similar vectors.
[0047] At this time, the learning unit 43 learns a model so that the vectors of hashtags included in the same post information tw and the vectors of the main text become similar vectors, and further trains the model so that the vectors of texts that share a common hashtag become similar vectors.
[0048] In this way, the learning unit 43 learns the model in a state where the hashtags are left for some of the posted information tw and the hashtags are removed for the remaining posted information tw. This makes it possible to learn a model that can understand both the theme of the text and the hashtags.
[0049] The providing unit 44 provides the model learned by the learning unit 43 to the distribution server 100. This enables the distribution server 100 to classify each piece of content by converting each piece of content into a vector using the model.
[0050] The providing unit 44 may convert each piece of posted information tw acquired from the SNS server 200 using a model, classify each piece of posted information tw, and provide the classification result to the distribution server 100. The classification of the posted information tw may be performed by, for example, clustering processing of each vector.
[0051] [3. Processing flow] Next, a process procedure executed by the information processing device 1 according to the embodiment will be described with reference to Fig. 4. Fig. 4 is a flowchart showing an example of the process procedure of the learning process according to the embodiment. Note that the process shown below is repeatedly executed at a predetermined cycle.
[0052] 4, the information processing device 1 acquires posted information tw from the SNS server 200 (step S101). Next, the information processing device 1 extracts posted information tw that has a common hashtag (step S102).
[0053] Next, the information processing device 1 removes hashtags from some of the posted information tw among the extracted posted information tw (step S103). Next, the information processing device 1 performs model learning so that the vectors of each piece of posted information tw become similar vectors (step S104), and ends the process.
[0054] 4. Modifications In the above embodiment, the information processing device 1 has been described as a case where the content is posted information tw posted on an SNS and the theme information is a hashtag, but the present invention is not limited to this. For example, the content may be various types of content including music, and the theme information may be the genre of the music (e.g., classical music), a composer, or a singer.
[0055] Also, for example, the content may be video content such as a movie, and the theme information in this case may be, for example, the genre, director, production company, and so on of the movie.
[0056] 5. Effects The information processing device 1 according to the embodiment includes an acquisition unit 41 that acquires content information including content and theme information of the content, and a learning unit 43 that uses the content acquired by the acquisition unit 41, from which some of the theme information has been removed, as learning data to train a model that converts the content into a vector.
[0057] The learning unit 43 also trains the model so that the vector of the theme information included in the content information and the vector of the content are similar vectors. The learning unit 43 also trains the model so that the vectors of contents having similar theme information are similar vectors.
[0058] The acquisition unit 41 acquires information posted by users as content information, and acquires hashtags included in the posted information as theme information. The learning unit 43 trains the model using training data in which the hashtags are assimilated into the posted information. The learning unit 43 trains the model using training data in which the hashtags are deleted from the posted information.
[0059] By performing any one or a combination of the above-described processes, the information processing device according to the present application can provide a model capable of appropriately classifying content.
[0060] [6. Hardware Configuration] The information processing device 1 according to the embodiment described above is realized by a computer 1000 having a configuration as shown in Fig. 5. Fig. 5 is a hardware configuration diagram showing an example of a computer that realizes the functions of the information processing device according to the embodiment. The computer 1000 has a CPU 1100, a RAM 1200, a ROM 1300, a HDD 1400, a communication interface (I / F) 1500, an input / output interface (I / F) 1600, and a media interface (I / F) 1700.
[0061] The CPU 1100 operates and controls each unit based on a program stored in the ROM 1300 or the HDD 1400. The ROM 1300 stores a boot program executed by the CPU 1100 when the computer 1000 is started up, programs that depend on the hardware of the computer 1000, and the like.
[0062] The HDD 1400 stores programs executed by the CPU 1100, data used by such programs, etc. The communication interface 1500 receives data from other devices via a network (communication network) N and sends the data to the CPU 1100, and transmits data generated by the CPU 1100 to other devices via the network N.
[0063] The CPU 1100 controls output devices such as a display and a printer, and input devices such as a keyboard and a mouse (in FIG. 5, the output devices and the input devices are collectively referred to as "input / output devices") via an input / output interface 1600. The CPU 1100 acquires data from the input devices via the input / output interface 1600. The CPU 1100 also outputs generated data to the output devices via the input / output interface 1600.
[0064] The media interface 1700 reads a program or data stored in the recording medium 1800 and provides it to the CPU 1100 via the RAM 1200. The CPU 1100 loads the program from the recording medium 1800 onto the RAM 1200 via the media interface 1700 and executes the loaded program. The recording medium 1800 is, for example, an optical recording medium such as a DVD (Digital Versatile Disc) or a PD (Phase change rewritable Disc), a magneto-optical recording medium such as an MO (Magneto-Optical disk), a tape medium, a magnetic recording medium, or a semiconductor memory.
[0065] For example, when the computer 1000 functions as an information processing device according to the embodiment, the CPU 1100 of the computer 1000 executes programs loaded onto the RAM 1200 to realize the functions of the control unit 4. The CPU 1100 of the computer 1000 reads and executes these programs from the recording medium 1800, but as another example, the CPU 1100 may obtain these programs from another device via the network N.
[0066] [7. Other] Although the embodiments of the present application have been described above, the present invention is not limited to the contents of these embodiments. The above-described components include those that can be easily imagined by a person skilled in the art, those that are substantially the same, and those that are within the so-called equivalent range. Furthermore, the above-described components can be appropriately combined. Furthermore, various omissions, substitutions, or modifications of the components can be made without departing from the spirit of the above-described embodiments.
[0067] Furthermore, among the processes described in the above embodiments, all or part of the processes described as being performed automatically can be performed manually, or all or part of the processes described as being performed manually can be performed automatically by a known method. In addition, the information including the processing procedures, specific names, various data and parameters shown in the above documents and drawings can be changed arbitrarily unless otherwise specified. For example, the various information shown in each drawing is not limited to the illustrated information.
[0068] In addition, each component of each device shown in the figure is a functional concept, and does not necessarily have to be physically configured as shown in the figure. In other words, the specific form of distribution and integration of each device is not limited to that shown in the figure, and all or part of them can be functionally or physically distributed and integrated in any unit according to various loads, usage conditions, etc.
[0069] For example, the above-mentioned information processing device may be realized using multiple server computers, and depending on the functions, the configuration can be flexibly changed, such as by calling an external platform using an API (Application Programming Interface) or network computing.
[0070] Furthermore, the above-described embodiments and modifications can be appropriately combined as long as the processing contents are not contradictory.
[0071] Furthermore, the above-mentioned "section, module, unit" can be read as "means" or "circuit", etc. For example, an acquisition section can be read as an acquisition means or an acquisition circuit. [Explanation of symbols]
[0072] 1. Information processing device 2. Communications Department 3 Storage section 4. Control section 31 Content information storage unit 32 Model memory section 41 Acquisition Department 42 Generation part 43 Learning Department 44 Providing Department 100 Distribution Server 200 SNS Server
Claims
1. an acquisition unit that acquires content information including content and theme information of the content; a learning unit that uses the content obtained by removing a part of the theme information from the content information obtained by the obtaining unit as learning data and learns a model that converts the content into a vector; An information processing device comprising:
2. The learning unit is The model is trained so that a vector of the theme information included in the content information and a vector of the content are similar vectors.
2. The information processing apparatus according to claim 1,
3. The learning unit is training the model so that vectors of the contents having similar theme information are similar vectors; 2. The information processing apparatus according to claim 1,
4. The acquisition unit is Acquiring information posted by users as the content information, and acquiring hashtags included in the posted information as the theme information.
2. The information processing apparatus according to claim 1,
5. The learning unit is Training the model using the training data in which the hashtag is assimilated with the posted information.
5. The information processing apparatus according to claim 4,
6. The learning unit is Training the model using the training data in which the hashtag is deleted from the posted information.
5. The information processing apparatus according to claim 4,
7. 1. A computer-implemented information processing method, comprising: An acquisition step of acquiring content information including content and theme information of the content; a learning process of learning a model for converting the content into a vector using the content, from which a part of the theme information has been removed, as learning data, from the content information acquired by the acquiring process; 13. An information processing method comprising:
8. An acquisition step of acquiring content information including content and theme information of the content; a learning step of learning a model for converting the content into a vector using the content, from which a part of the theme information has been removed, as learning data, from the content information acquired by the acquisition step; An information processing program characterized by causing a computer to execute the above.
Citation Information
Patent Citations
Mass analysis system and method for correcting conversion formula
JP2022047013A
