CN111368242B - Semantic resource publishing system and method and natural language processing device and method - Google Patents

Semantic resource publishing system and method and natural language processing device and method Download PDF

Info

Publication number
CN111368242B
CN111368242B CN202010158238.2A CN202010158238A CN111368242B CN 111368242 B CN111368242 B CN 111368242B CN 202010158238 A CN202010158238 A CN 202010158238A CN 111368242 B CN111368242 B CN 111368242B
Authority
CN
China
Prior art keywords
semantic
resource
built
version
version information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010158238.2A
Other languages
Chinese (zh)
Other versions
CN111368242A (en
Inventor
龚建明
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Sipic Technology Co Ltd
Original Assignee
Sipic Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Sipic Technology Co Ltd filed Critical Sipic Technology Co Ltd
Priority to CN202010158238.2A priority Critical patent/CN111368242B/en
Publication of CN111368242A publication Critical patent/CN111368242A/en
Application granted granted Critical
Publication of CN111368242B publication Critical patent/CN111368242B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/958Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/958Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking
    • G06F16/986Document structures and storage, e.g. HTML extensions

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)
  • Document Processing Apparatus (AREA)

Abstract

The invention discloses a semantic resource publishing system, which comprises: the system comprises a resource management center, a file sharing system, a built-in semantic service cluster and a thermal configuration center, wherein the built-in semantic service cluster comprises a plurality of built-in semantic services, the built-in semantic service cluster is loaded and operated by a plurality of corresponding containers, and each built-in semantic service is loaded by one container; the resource management center is used for receiving the semantic resource of the new version uploaded by the developer, and the file sharing system is used for storing the semantic resource of the new version from the resource management center; at least one of the plurality of containers is used for receiving a resource version updating request and uploading version information contained in the resource version updating request to the thermal configuration center; the plurality of containers are also used to monitor the thermal configuration center to synchronize the version information. All containers carrying service operation monitor the same thermal configuration center, so that the issue of semantic resources is realized, and the information synchronization among a plurality of built-in semantic services is ensured.

Description

Semantic resource publishing system and method and natural language processing device and method
Technical Field
The invention relates to the technical field of artificial intelligence, in particular to a semantic resource publishing system and method and a natural language processing device and method.
Background
Existing platforms for providing natural language processing services include AVS (Alexa Voice Service amazon intelligent dialogue Service) and hundred-degree Dueros (hundred-degree AI open platform). Natural language processing requires training corpora in advance to generate corresponding corpus resources for semantic text parsing. When a hot event occurs, new corpus resources need to be trained and updated to the server side when vocabulary is hot.
The server of the platform of the natural language processing service in the prior art needs to interrupt the operation of the service, restart the service, synchronize the semantic resource of the new version to the file system of the platform server, and load the semantic resource of the new version into the memory, thereby achieving the purpose of upgrading the semantic resource. But the service operation is interrupted, so that the experience of the user is influenced, and the efficiency of updating the semantic resources is reduced.
Disclosure of Invention
The embodiment of the invention provides a semantic resource publishing system and method and a natural language processing device and method, which are used for solving at least one of the technical problems.
In a first aspect, an embodiment of the present invention provides a semantic resource publishing system, which is applied to a server, and the system includes: the system comprises a resource management center, a file sharing system, a built-in semantic service cluster and a thermal configuration center, wherein the built-in semantic service cluster comprises a plurality of built-in semantic services, the built-in semantic service cluster is loaded and operated by a plurality of corresponding containers, and each built-in semantic service is loaded by one container;
the resource management center is used for receiving the semantic resource of the new version uploaded by the developer,
the file sharing system is used for storing the semantic resource of the new version from the resource management center;
at least one of the plurality of containers is used for receiving a resource version updating request and uploading version information contained in the resource version updating request to the thermal configuration center;
the plurality of containers are also used to monitor the thermal configuration center to synchronize the version information.
In a second aspect, an embodiment of the present invention provides a semantic resource publishing method, which is applied to a server, where the server is configured with a resource management center, a file sharing system, a built-in semantic service cluster and a thermal configuration center, where the built-in semantic service cluster includes a plurality of built-in semantic services, and is carried and operated by a plurality of corresponding containers, and each built-in semantic service is carried by one container; the semantic resource publishing method comprises the following steps:
the resource management center receives the semantic resource of the new version uploaded by the developer,
the file sharing system stores the semantic resource of the new version from the resource management center;
at least one of the plurality of containers receives a resource version update request and uploads version information contained in the resource version update request to the thermal configuration center;
the plurality of containers also monitor the thermal configuration center and synchronize the version information.
In a third aspect, an embodiment of the present invention provides a natural language processing apparatus configured with the implementation of the semantic resource distribution system described in any one of the foregoing embodiments, wherein,
the built-in semantic service cluster is configured to: receiving a semantic analysis request sent by a client; analyzing the semantic analysis request to determine a natural language text to be processed; determining version information of a target semantic resource corresponding to the natural language text to be processed;
the computing process pool is configured to: accessing the target semantic resource stored in the file sharing system according to the version information of the target semantic resource to obtain a semantic analysis result;
and the network process pool sends the semantic parsing result to the client.
In a fourth aspect, an embodiment of the present invention provides a natural language processing method, which is implemented based on the semantic resource publishing system in any one of the foregoing embodiments, and the method includes:
the built-in semantic service cluster receives a semantic analysis request sent by a client;
the built-in semantic service cluster analyzes the semantic analysis request to determine a natural language text to be processed;
the built-in semantic service cluster determines version information of a target semantic resource corresponding to the natural language text to be processed;
the computing process pool accesses the target semantic resource stored in the file sharing system according to the version information of the target semantic resource to obtain a semantic analysis result;
and the network process pool sends the semantic parsing result to the client.
In a fifth aspect, an embodiment of the present invention provides a storage medium, where one or more programs including execution instructions are stored, where the execution instructions can be read and executed by an electronic device (including but not limited to a computer, a server, or a network device, etc.) to perform any one of the semantic resource issuing methods described above in the present invention.
In a sixth aspect, an electronic device is provided, which includes: the system comprises at least one processor and a memory communicatively coupled to the at least one processor, wherein the memory stores instructions executable by the at least one processor, and the instructions are executable by the at least one processor to enable the at least one processor to perform any of the semantic resource publishing methods of the present invention described above.
In a seventh aspect, an embodiment of the present invention further provides a computer program product, where the computer program product includes a computer program stored on a storage medium, and the computer program includes program instructions, and when the program instructions are executed by a computer, the computer is caused to execute any one of the semantic resource issuing methods described above.
The embodiment of the invention has the beneficial effects that: all containers carrying service operation monitor the same thermal configuration center, so that the issue of semantic resources is realized, and the information synchronization among a plurality of built-in semantic services is ensured.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 is a schematic diagram of an embodiment of a semantic resource publishing system of the present invention;
FIG. 2 is a flowchart of an embodiment of a semantic resource publishing method of the present invention;
FIG. 3 is a flow diagram of one embodiment of built-in semantic service initialization in the present invention;
FIG. 4 is a flowchart of an embodiment of resource publishing by the built-in semantic service in the present invention;
FIG. 5 is a flowchart of an embodiment of a natural language processing method of the present invention;
fig. 6 is a schematic structural diagram of an embodiment of an electronic device according to the invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict.
The invention may be described in the general context of computer-executable instructions, such as program modules, being executed by a computer. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform particular tasks or implement particular abstract data types. The invention may also be practiced in distributed computing environments where tasks are performed by remote processing devices that are linked through a communications network. In a distributed computing environment, program modules may be located in both local and remote computer storage media including memory storage devices.
As used in this disclosure, "module," "device," "system," and the like are intended to refer to a computer-related entity, either hardware, a combination of hardware and software, or software in execution. In particular, for example, an element may be, but is not limited to being, a process running on a processor, an object, an executable, a thread of execution, a program, and/or a computer. Also, an application or script running on a server, or a server, may be an element. One or more elements may be in a process and/or thread of execution and an element may be localized on one computer and/or distributed between two or more computers and may be operated by various computer-readable media. The elements may also communicate by way of local and/or remote processes based on a signal having one or more data packets, e.g., from a data packet interacting with another element in a local system, distributed system, and/or across a network in the internet with other systems by way of the signal.
Finally, it should also be noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The inventor finds that the main reason of the above technical problems in the prior art in the process of implementing the invention is as follows: 1. the resources of service operation are loaded into the memory of the server and cannot be released; 2. a compute kernel (a compute kernel refers to a compute instance that carries natural language processing functionality) cannot update a version of a semantic resource; 3. resource version information cannot be synchronized between containers bearing service operation (the containers are virtualization units of the service operation and provide service capacity for the outside); 4. the container for carrying service operation cannot independently and quickly synchronize new version semantic resources into a corresponding file system (the container technology is used as a virtualization technology and is used for carrying service operation, natural language processing is carried out on the service operation, the corresponding semantic resources are required to be loaded from a file system, and the file system is bound on the container), and the external service provided by the container is not influenced.
Fig. 1 is a schematic diagram of an embodiment of the semantic resource publishing system of the present invention, which is applied to a server, for example, a server providing natural language processing function.
As shown in fig. 1, the semantic resource publishing system 100 of the present invention comprises: the system comprises a resource management center 110, a file sharing system 120, a built-in semantic service cluster 130 and a thermal configuration center 140, wherein the built-in semantic service cluster 130 comprises a plurality of built-in semantic services 131, and the built-in semantic services are carried and operated by a plurality of corresponding containers, and each built-in semantic service is carried by one container;
the resource management center 110 is configured to receive a new version of semantic resource uploaded by a developer, and the file sharing system 120 is configured to store the new version of semantic resource from the resource management center 110;
at least one of the plurality of containers is configured to receive a resource version update request and upload version information included in the resource version update request to the thermal configuration center 140;
the plurality of containers are also used to monitor the thermal configuration center 140 to synchronize the version information.
In the embodiment, all containers carrying service operation monitor the same thermal configuration center, release of the new version semantic resources is realized, and information synchronization among a plurality of built-in semantic services is ensured. The built-in semantic service synchronizes the corresponding resources to the shared file system from the resource management center, so that all services can be accessed at the same time, and partial containers cannot access the new version resources and the old version semantic resources.
In some embodiments, the system is further configured with a network process pool and a computing process pool;
at least one of the plurality of containers for receiving resource version update requests comprises: at least one of the plurality of containers is to receive a resource version update request over the network process pool;
the computing process pool is used for responding to a resource version updating request from the network process pool and synchronizing the semantic resource of the new version of the resource management center to the file sharing system.
Illustratively, the network process pool is used for providing a network connection function for outside, and realizing data interaction with the client; the computing process pool is used for performing asynchronous natural semantic processing; the client sends the request to the service, the service processes the request of the client through the network process pool, then sends the request to the computing process pool for natural language processing, and returns the result to the network process pool after obtaining the result, and then returns the result to the client. In the embodiment, the semantic analysis request of the client is asynchronously and non-blocking processed by depending on the mutual collocation of the network process pool and the computing process pool, and the synchronous resource release task is realized.
In some embodiments, synchronizing the semantic resources of the new version of the resource management center to the file sharing system by the computing process pool comprises: and the processes in the computing process pool synchronize the semantic resources of the new version of the resource management center to the file sharing system according to the dialogue field.
Illustratively, when receiving a semantic parsing request from a client, a built-in semantic service extracts resource version information corresponding to a current request from a memory, transmits relevant information to a computing process pool, selects a computing process meeting conditions from the computing process pool, performs corresponding natural language processing, returns a result to a network process after parsing is completed, and transmits a final result to the client by the network process.
Exemplarily, the condition is satisfied, that is, a service can be provided to the outside, and the condition may be: a. an idle state, not currently in the middle of natural language processing; b. the current server integral CPU is not higher than a set certain index; c. the memory of the current server is not higher than a set certain index;
illustratively, the processes in the computing process pool have corresponding working states, such as whether the processes are working or not, and obtain the overall states of the service, such as a CPU and a memory, and select the computing process meeting the conditions by judging the states.
The embodiment can support the semantic resources of multiple fields to run simultaneously, because the semantic resources loaded to the memory among the computing processes are isolated, the computing processes are managed by the computing process pool, different requests can be processed, and the capability of simultaneously processing the resources of the multiple fields is realized.
Fig. 2 is a flowchart of an embodiment of a semantic resource publishing method according to the present invention, which is applied to a server configured with a resource management center, a file sharing system, a built-in semantic service cluster and a thermal configuration center, wherein the built-in semantic service cluster includes a plurality of built-in semantic services, and is carried and operated by a corresponding plurality of containers, and each built-in semantic service is carried by one container.
As shown in fig. 2, the semantic resource publishing method in this embodiment includes:
s21, the resource management center receives the semantic resource of the new version uploaded by the developer;
s22, the file sharing system stores the semantic resource of the new version from the resource management center;
s23, at least one of the containers receives a resource version updating request and uploads version information contained in the resource version updating request to the thermal configuration center;
s24, the containers also monitor the thermal configuration center and synchronize the version information.
In the embodiment, all containers carrying service operation monitor the same thermal configuration center, so that the release of the new version semantic resources is realized, and the information synchronization among a plurality of built-in semantic services is ensured. The built-in semantic service synchronizes the corresponding resources to the shared file system from the resource management center, so that all services can be accessed at the same time, and partial containers cannot access the new version resources and the old version semantic resources.
In some embodiments, the server is further configured with a network process pool and a computing process pool;
receiving, by at least one of the plurality of containers, a resource version update request comprises: at least one of the plurality of containers receiving a resource version update request through the network process pool;
the method further comprises the following steps: the computing process pool synchronizes semantic resources of the new version of the resource management center to the file sharing system in response to a resource version update request from the network process pool.
In some embodiments, synchronizing the semantic resources of the new version of the resource management center to the file sharing system by the computing process pool comprises: and the processes in the computing process pool synchronize the semantic resources of the new version of the resource management center to the file sharing system according to the dialogue field.
Fig. 3 is a flowchart illustrating an embodiment of initializing a built-in semantic service according to the present invention, where the method is executed by a corresponding container, and the execution steps of the method include:
initializing a built-in semantic service;
acquiring current latest resource version information from a thermal configuration center;
judging whether the running resource version information is acquired or not;
if not, continuing to monitor the resource version information in the hot configuration center;
if so, judging whether the latest resource version information is the same as the current resource version information used by the operation of the built-in semantic service;
if yes, continuing to monitor the resource version information in the hot configuration center;
and if not, updating the resource version operated by the current built-in semantic service.
Fig. 4 is a flowchart of an embodiment of issuing a resource by using a built-in semantic service according to the present invention, including the following steps: acquiring the upgrading state of the current resource version; if the resource is in the upgrading process, ending the resource release; if not, the current resource is set to be switched to an upgrading state; synchronizing resources to the shared file system from the resource management center; setting new version information of resources operated by the service; synchronizing the new version information of the resource to a hot configuration center; and finishing the resource upgrading.
In some embodiments, the semantic resource publishing method of the invention comprises the following steps:
the method comprises the following steps: the developer synchronizes the semantic resource of the new version to the resource management center;
step two: all containers bearing the service monitor a thermal configuration center at the same time, when one container receives a request for updating resources, the version information of the new resources is synchronized to the thermal configuration center, and after other containers monitor the data change of the thermal configuration center, the related information is synchronized into the containers, so that the purpose of mutually synchronizing the information among all the containers is achieved;
all containers bearing the service use a shared file system to solve the problem that all containers need synchronous resources; after the service receives the resource release request, the network process transmits the release request to the computing process pool;
step four: the synchronous resources of the computing process are in an asynchronous non-blocking mode, so that the request of a client is prevented from being influenced during the synchronous resources of the service, and the semantic resources can be prevented from being updated only at night; the computing process pool synchronizes the resources from the resource management center to the shared file system;
and fifthly, the semantic resources loaded by the service computing process are isolated, so that the semantic resources in different fields are prevented from being influenced with each other, and the external request is further influenced.
In some embodiments, after the resources are successfully released, the computing kernel of the container can dynamically load the semantic resources of the latest version, and has the capability of rolling back the old version; in addition, the computing kernel can dynamically unload old version semantic resources, and excessive memory occupation is avoided.
In some embodiments, the present invention further provides a natural language processing apparatus configured with any of the semantic resource issuing system implementations described in the foregoing embodiments, wherein,
the built-in semantic service cluster is configured to: receiving a semantic analysis request sent by a client; analyzing the semantic analysis request to determine a natural language text to be processed; determining version information of a target semantic resource corresponding to the natural language text to be processed;
the computing process pool is configured to: accessing the target semantic resource stored in the file sharing system according to the version information of the target semantic resource to obtain a semantic analysis result;
and the network process pool sends the semantic parsing result to the client.
In this embodiment, when receiving a semantic parsing request from a client, a service extracts resource version information corresponding to a current request from a memory, transmits related information to a computing process pool, selects a computing process meeting a condition from the computing process pool, performs corresponding natural language processing, returns a result to a network process after parsing is completed, and transmits a final result to the client by the network process. The service achieves the asynchronous non-blocking effect through the design of the computing process pool, namely the network process pool is asynchronous non-blocking and cannot be influenced by a blocking synchronous resource task executed by the computing process when receiving the semantic analysis request of the client;
in some embodiments, the present invention further provides a natural language processing method, which is implemented based on the semantic resource publishing system described in any of the foregoing embodiments.
FIG. 5 is a flow chart of an embodiment of a natural language processing method according to the present invention, the method comprising:
s51, the built-in semantic service cluster receives a semantic analysis request sent by a client;
s52, the built-in semantic service cluster analyzes the semantic analysis request to determine a natural language text to be processed;
s53, the built-in semantic service cluster determines the version information of the target semantic resource corresponding to the natural language text to be processed;
s54, the computing process pool accesses the target semantic resource stored in the file sharing system according to the version information of the target semantic resource to obtain a semantic analysis result;
and S55, the network process pool sends the semantic parsing result to the client.
It should be noted that for simplicity of explanation, the foregoing method embodiments are described as a series of acts or combination of acts, but those skilled in the art will appreciate that the present invention is not limited by the order of acts, as some steps may occur in other orders or concurrently in accordance with the invention. Further, those skilled in the art will appreciate that the embodiments described in this specification are presently preferred and that no acts or modules are required by the invention. In the foregoing embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In some embodiments, the present invention provides a non-transitory computer readable storage medium, in which one or more programs including executable instructions are stored, where the executable instructions can be read and executed by an electronic device (including but not limited to a computer, a server, or a network device, etc.) to perform any one of the semantic resource publishing methods of the present invention.
In some embodiments, the present invention further provides a computer program product comprising a computer program stored on a non-volatile computer-readable storage medium, the computer program comprising program instructions that, when executed by a computer, cause the computer to perform any of the above semantic resource issuing methods.
In some embodiments, an embodiment of the present invention further provides an electronic device, which includes: the system includes at least one processor, and a memory communicatively coupled to the at least one processor, wherein the memory stores instructions executable by the at least one processor to enable the at least one processor to perform a semantic resource publishing method.
In some embodiments, an embodiment of the present invention further provides a storage medium on which a computer program is stored, where the computer program is executed by a processor to implement a semantic resource publishing method.
Fig. 6 is a schematic hardware structure diagram of an electronic device for executing a semantic resource publishing method according to another embodiment of the present application, and as shown in fig. 6, the electronic device includes:
one or more processors 610 and a memory 620, with one processor 610 being an example in fig. 6.
The apparatus for performing the semantic resource publishing method may further include: an input device 630 and an output device 640.
The processor 610, the memory 620, the input device 630, and the output device 640 may be connected by a bus or other means, such as the bus connection in fig. 6.
The memory 620, as a non-volatile computer-readable storage medium, may be used to store non-volatile software programs, non-volatile computer-executable programs, and modules, such as program instructions/modules corresponding to the semantic resource publishing method in the embodiments of the present application. The processor 610 executes various functional applications and data processing of the server by running nonvolatile software programs, instructions and modules stored in the memory 620, so as to implement the semantic resource issuing method of the above method embodiment.
The memory 620 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created from use of the semantic resource issuing device, and the like. Further, the memory 620 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some embodiments, memory 620 optionally includes memory located remotely from processor 610, which may be connected to the semantic resource issuing device via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The input device 630 may receive input numeric or character information and generate signals related to user settings and function control of the semantic resource issuing device. The output device 640 may include a display device such as a display screen.
The one or more modules are stored in the memory 620 and, when executed by the one or more processors 610, perform the semantic resource publishing method of any of the method embodiments described above.
The product can execute the method provided by the embodiment of the application, and has the corresponding functional modules and beneficial effects of the execution method. For technical details that are not described in detail in this embodiment, reference may be made to the methods provided in the embodiments of the present application.
The electronic device of the embodiments of the present application exists in various forms, including but not limited to:
(1) mobile communication devices, which are characterized by mobile communication capabilities and are primarily targeted at providing voice and data communications. Such terminals include smart phones (e.g., iphones), multimedia phones, functional phones, and low-end phones, among others.
(2) The ultra-mobile personal computer equipment belongs to the category of personal computers, has calculation and processing functions and generally has the characteristic of mobile internet access. Such terminals include PDA, MID, and UMPC devices, such as ipads.
(3) Portable entertainment devices such devices may display and play multimedia content. Such devices include audio and video players (e.g., ipods), handheld game consoles, electronic books, as well as smart toys and portable car navigation devices.
(4) The server is similar to a general computer architecture, but has higher requirements on processing capability, stability, reliability, safety, expandability, manageability and the like because of the need of providing highly reliable services.
(5) And other electronic devices with data interaction functions.
The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by software plus a general hardware platform, and certainly can also be implemented by hardware. Based on such understanding, the above technical solutions substantially or contributing to the related art may be embodied in the form of a software product, which may be stored in a computer-readable storage medium, such as ROM/RAM, magnetic disk, optical disk, etc., and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the method according to the embodiments or some parts of the embodiments.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present application, and not to limit the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions in the embodiments of the present application.

Claims (10)

1. A semantic resource publishing system applied to a server, the system comprising: the system comprises a resource management center, a file sharing system, built-in semantic service clusters and a thermal configuration center, wherein each built-in semantic service cluster comprises a plurality of built-in semantic services which are born and operated by a plurality of corresponding containers, each built-in semantic service is born by one container, each built-in semantic service synchronizes corresponding resources to the file sharing system from the resource management center, and all containers born and operated by the services monitor the same thermal configuration center;
the resource management center is used for receiving the semantic resource of the new version uploaded by the developer,
the file sharing system is used for storing the semantic resource of the new version from the resource management center;
at least one of the containers is used for receiving a resource version updating request and uploading version information contained in the resource version updating request to the thermal configuration center;
the plurality of containers are also used for monitoring the thermal configuration center to synchronize the version information;
the initialization of each built-in semantic service is performed by a corresponding container, and comprises the following steps: acquiring current latest resource version information from a thermal configuration center; judging whether the running resource version information is acquired or not; if not, continuing to monitor the resource version information in the hot configuration center; if so, judging whether the latest resource version information is the same as the current resource version information used by the operation of the built-in semantic service; if yes, continuing to monitor the resource version information in the hot configuration center; if not, updating the resource version operated by the current built-in semantic service.
2. The system of claim 1, wherein the system is further configured with a pool of network processes and a pool of computing processes;
at least one of the plurality of containers for receiving resource version update requests comprises: at least one of the plurality of containers is to receive a resource version update request over the network process pool;
the computing process pool is used for responding to a resource version updating request from the network process pool and synchronizing the semantic resource of the new version of the resource management center to the file sharing system.
3. The system of claim 2, wherein the computing process pool synchronizing semantic resources of the new version of the resource management center to the file sharing system comprises:
and the processes in the computing process pool synchronize the semantic resources of the new version of the resource management center to the file sharing system according to the dialogue field.
4. A semantic resource publishing method is applied to a server, the server is provided with a resource management center, a file sharing system, a built-in semantic service cluster and a thermal configuration center, wherein the built-in semantic service cluster comprises a plurality of built-in semantic services, the built-in semantic services are carried and operated by a plurality of corresponding containers, each built-in semantic service is carried by one container, each built-in semantic service synchronizes corresponding resources to the file sharing system from the resource management center, and all the containers carrying service operation monitor the same thermal configuration center; the semantic resource publishing method comprises the following steps:
the resource management center receives the semantic resource of the new version uploaded by the developer,
the file sharing system stores the semantic resource of the new version from the resource management center;
at least one of the plurality of containers receives a resource version update request and uploads version information contained in the resource version update request to the thermal configuration center;
the plurality of containers also monitor the thermal configuration center and synchronize the version information;
the initialization of each built-in semantic service is performed by a corresponding container, and comprises the following steps: acquiring current latest resource version information from a thermal configuration center; judging whether the running resource version information is acquired or not; if not, continuing to monitor the resource version information in the thermal configuration center; if so, judging whether the latest resource version information is the same as the current resource version information used by the operation of the built-in semantic service; if yes, continuing to monitor the resource version information in the hot configuration center; if not, updating the resource version operated by the current built-in semantic service.
5. The method of claim 4, wherein the server is further configured with a pool of network processes and a pool of computing processes;
receiving, by at least one of the plurality of containers, a resource version update request comprises: at least one of the plurality of containers receiving a resource version update request through the network process pool;
the method further comprises the following steps: the computing process pool synchronizes semantic resources of the new version of the resource management center to the file sharing system in response to a resource version update request from the network process pool.
6. The method of claim 5, wherein the computing process pool synchronizing semantic resources of the new version of the resource management center to the file sharing system comprises:
and the processes in the computing process pool synchronize the semantic resources of the new version of the resource management center to the file sharing system according to the dialogue field.
7. A natural language processing apparatus configured with the system implementation of any one of claims 1-3,
the built-in semantic service cluster is configured to: receiving a semantic analysis request sent by a client; analyzing the semantic analysis request to determine a natural language text to be processed; determining version information of a target semantic resource corresponding to the natural language text to be processed;
the computing process pool is configured to: accessing the target semantic resource stored in the file sharing system according to the version information of the target semantic resource to obtain a semantic analysis result;
and the network process pool sends the semantic parsing result to the client.
8. A natural language processing method, the method being implemented based on the system of any one of claims 1-3, the method comprising:
the built-in semantic service cluster receives a semantic analysis request sent by a client;
the built-in semantic service cluster analyzes the semantic analysis request to determine a natural language text to be processed;
the built-in semantic service cluster determines version information of a target semantic resource corresponding to the natural language text to be processed;
the computing process pool accesses the target semantic resource stored in the file sharing system according to the version information of the target semantic resource to obtain a semantic analysis result;
and the network process pool sends the semantic parsing result to the client.
9. An electronic device, comprising: at least one processor, and a memory communicatively coupled to the at least one processor, wherein the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the steps of the method of any one of claims 4-6.
10. A storage medium on which a computer program is stored which, when being executed by a processor, carries out the steps of the method of any one of claims 4 to 6.
CN202010158238.2A 2020-03-09 2020-03-09 Semantic resource publishing system and method and natural language processing device and method Active CN111368242B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010158238.2A CN111368242B (en) 2020-03-09 2020-03-09 Semantic resource publishing system and method and natural language processing device and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010158238.2A CN111368242B (en) 2020-03-09 2020-03-09 Semantic resource publishing system and method and natural language processing device and method

Publications (2)

Publication Number Publication Date
CN111368242A CN111368242A (en) 2020-07-03
CN111368242B true CN111368242B (en) 2022-07-08

Family

ID=71208581

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010158238.2A Active CN111368242B (en) 2020-03-09 2020-03-09 Semantic resource publishing system and method and natural language processing device and method

Country Status (1)

Country Link
CN (1) CN111368242B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106789250A (en) * 2016-12-22 2017-05-31 焦点科技股份有限公司 A kind of service multi version based on container coexists implementation method
CN107729041A (en) * 2017-07-26 2018-02-23 上海壹账通金融科技有限公司 The hot update method of application program, device, terminal and storage medium

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106789250A (en) * 2016-12-22 2017-05-31 焦点科技股份有限公司 A kind of service multi version based on container coexists implementation method
CN107729041A (en) * 2017-07-26 2018-02-23 上海壹账通金融科技有限公司 The hot update method of application program, device, terminal and storage medium

Also Published As

Publication number Publication date
CN111368242A (en) 2020-07-03

Similar Documents

Publication Publication Date Title
US10872064B2 (en) Utilizing version vectors across server and client changes to determine device usage by type, app, and time of day
CN108369604B (en) Method and device for sharing file system by multiple operating systems and electronic equipment
US9503310B1 (en) Methods and systems of dynamic management of resources in a virtualized environment
KR102076379B1 (en) Persistent and resilient worker processes
US10684838B2 (en) Dynamic application deployment
JP7397094B2 (en) Resource configuration method, resource configuration device, computer equipment, and computer program
US20170168807A1 (en) Method and electronic device for updating application program
CN109726076B (en) Applet life cycle management method and system
CN112988400B (en) Video memory optimization method and device, electronic equipment and readable storage medium
EP2603867B1 (en) Sharing data on mobile devices
US9582371B1 (en) Balancing latency and consistency requirements during data replication
CN107347093B (en) Configuration method and device for distributed server system
CN110113176B (en) Information synchronization method and device for configuration server
US20150199211A1 (en) System and Method for File Injection in Virtual Machine Configuration
CN111857995B (en) Process scheduling method and device, storage medium and electronic device
CN111368242B (en) Semantic resource publishing system and method and natural language processing device and method
CN111026532B (en) Message queue management method for voice data
CN112764837B (en) Data reporting method, device, storage medium and terminal
CN112799849B (en) Data processing method, device, equipment and storage medium
CN112379904B (en) Automatic application updating method based on cloud mobile phone
CN112604267B (en) Game processing method, system, device, equipment and medium
CN115238006A (en) Retrieval data synchronization method, device, equipment and computer storage medium
CN114374703A (en) Method, device and equipment for acquiring cloud mobile phone information and storage medium
US20210208937A1 (en) System and method for updating applications with current instance configurations in real-time
CN114968500A (en) Task scheduling method, device, equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: 215123 building 14, Tengfei Innovation Park, 388 Xinping street, Suzhou Industrial Park, Suzhou City, Jiangsu Province

Applicant after: Sipic Technology Co.,Ltd.

Address before: 215123 building 14, Tengfei Innovation Park, 388 Xinping street, Suzhou Industrial Park, Suzhou City, Jiangsu Province

Applicant before: AI SPEECH Co.,Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant