TWI688873B - Enviromental information question and answer system and method - Google Patents

Enviromental information question and answer system and method Download PDF

Info

Publication number
TWI688873B
TWI688873B TW108100803A TW108100803A TWI688873B TW I688873 B TWI688873 B TW I688873B TW 108100803 A TW108100803 A TW 108100803A TW 108100803 A TW108100803 A TW 108100803A TW I688873 B TWI688873 B TW I688873B
Authority
TW
Taiwan
Prior art keywords
data
environmental
auxiliary
processor
target
Prior art date
Application number
TW108100803A
Other languages
Chinese (zh)
Other versions
TW202026912A (en
Inventor
蔡孟涵
詹皓詠
Original Assignee
國立臺灣科技大學
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 國立臺灣科技大學 filed Critical 國立臺灣科技大學
Priority to TW108100803A priority Critical patent/TWI688873B/en
Application granted granted Critical
Publication of TWI688873B publication Critical patent/TWI688873B/en
Publication of TW202026912A publication Critical patent/TW202026912A/en

Links

Images

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

This disclosure provides an environmental information question and answer system and method including the following steps. A message interface generates and sends a language input command to a processor according to a received language message, wherein the language input command includes at least one of a target environment data and an auxiliary environmental data. The processor selectively generates the target environment data or the auxiliary environmental data not included in the language input command, and the semantic analysis component analyzes the target environment data and the auxiliary environmental data. The processor analyzes the strongest association between the target environment data and the auxiliary environmental data according to a plurality of data points of the environmental knowledge base. The processor generates the query command according to the strongest association, and generates a response command according to the query command and the environmental knowledge base. The processor sends the response command to the message interface, and the message interface received the response command shows the response message.

Description

環境資訊問答系統與方法Environmental information question answering system and method

本發明係關於一種環境資訊問答系統與方法,特別是一種基於人工智慧的環境資訊問答系統與方法。The invention relates to an environmental information question answering system and method, in particular to an environmental intelligence question answering system and method based on artificial intelligence.

隨著人工智慧與通訊軟體的發展,使用具有人工智慧的機器人在通訊軟體上,執行簡單應答或查詢資料等工作,已漸漸成為趨勢。使用者可透過通訊軟體或其他介面傳送訊息給機器人,機器人則分析訊息內容所包含的關鍵字,並根據關鍵字搜尋資料庫,以提供使用者所需的資訊。With the development of artificial intelligence and communication software, the use of artificial intelligence robots on communication software to perform simple responses or query data has gradually become a trend. Users can send messages to the robot through communication software or other interfaces. The robot analyzes the keywords contained in the message content and searches the database based on the keywords to provide the information the user needs.

然而,當上述的裝置應用在防災時,由於氣象相關的資料過於龐大,因此機器人在搜尋資料時需要耗費較多的時間或硬體資源;在此情形下,當使用者傳送的訊息不夠完整(例如,訊息中缺少時間、地點或明確的氣象資訊),機器人可能會耗費更多時間搜尋,且找出的結果極可能非使用者實際上欲詢求的資訊。此情況不僅造成使用者在使用過程的不便(使用者可能因對機器人的操作理解不足而未能在第一時間提供完整的訊息),也可能在使用者一直未能提供完整訊息的情況下導致使用者無法取得所需的正確氣象資訊,因而未能即時預測和評估自然災害,影響防災的效果。However, when the above-mentioned device is used in disaster prevention, because the meteorological data is too large, the robot needs to spend more time or hardware resources when searching for the data; in this case, when the message sent by the user is not complete ( For example, the lack of time, location or clear weather information in the message), the robot may spend more time searching, and the result found is most likely not the information that the user actually wants. This situation not only causes inconvenience to the user in the use process (the user may fail to provide complete information in the first place due to insufficient understanding of the operation of the robot), but may also cause the user to fail to provide complete information Users cannot obtain the correct meteorological information they need, so they cannot predict and evaluate natural disasters in real time, affecting the effectiveness of disaster prevention.

因此,目前尚需要一種環境資訊問答系統與方法,以改善上述問題。Therefore, there is still a need for an environmental information question answering system and method to improve the above problems.

本發明在於提供一種環境資訊問答系統與方法,當使用者傳送的訊息不夠完整,此系統與方法能依據不同的氣象狀況,對使用者的問題做回應,以減少機器人搜尋資料所耗費的時間和硬體資源。The present invention is to provide an environmental information question answering system and method. When the information sent by the user is not complete, the system and method can respond to the user's questions according to different weather conditions, so as to reduce the time and time spent by the robot in searching data Hardware resources.

本發明在於提供一種環境資訊問答方法,包含:以該訊息收發介面依據所接收的語言訊息產生並傳送一語言輸入指令到一處理器,其中該語言輸入指令包含一目標環境資料與一輔助環境資料的至少一者;以該處理器的一語意分析元件接收該語言輸入指令所包含的該目標環境資料與該輔助環境資料的該至少一者,並選擇性地以該處理器產生該語言輸入指令未包含的該目標環境資料或該輔助環境資料,且以該語意分析元件分析該目標環境資料與該輔助環境資料;以該處理器依據一環境知識庫的多筆資料點,分析該目標環境資料與該輔助環境資料之間的一最佳關聯性;以該處理器依據該最佳關聯性產生一查詢指令,並依據該查詢指令與該環境知識庫產生一回應指令;以該處理器傳送該回應指令到該訊息收發介面;以及以接收該回應指令的該訊息收發介面呈現該回應訊息。The invention provides a question and answer method for environmental information, including: generating and transmitting a language input command to a processor according to the received language message using the message sending and receiving interface, wherein the language input command includes a target environment data and an auxiliary environment data At least one of; receiving the at least one of the target environment data and the auxiliary environment data included in the language input command by a semantic analysis component of the processor, and selectively generating the language input command by the processor The target environmental data or the auxiliary environmental data that are not included, and analyze the target environmental data and the auxiliary environmental data with the semantic analysis element; the processor analyzes the target environmental data based on multiple data points of an environmental knowledge base An optimal relationship with the auxiliary environment data; the processor generates a query command based on the optimal relationship, and generates a response command based on the query command and the environmental knowledge base; the processor transmits the Responding to the message sending and receiving interface; and presenting the reply message with the message receiving and sending interface receiving the responding command.

本發明在於提供一種環境資訊問答方法,包含:一訊息收發介面,用於依據所接收的語言訊息產生一語言輸入指令以及接收並呈現一回應訊息,其中該語言輸入指令包含一目標環境資料與一輔助環境資料的至少一者;一處理器,與該訊息收發介面電性連結,並包含一語意分析元件,該處理器用於接收該語言輸入指令,並選擇性地產生該語言輸入指令未包含的該目標環境資料或該輔助環境資料,且以該語意分析元件分析該目標環境資料與該輔助環境資料;以及一環境知識庫,與該處理器互相連結,並包含多筆資料點;其中該處理器根據該環境知識庫的該些資料點,分析該目標環境資料與該輔助環境資料之間的一最佳關聯性, 並依據該最佳關聯性產生一查詢指令,並依據該查詢指令與該環境知識庫產生並傳送該回應訊息至該訊息收發介面。The invention provides a question and answer method for environmental information, including: a message sending and receiving interface for generating a language input command and receiving and presenting a response message according to the received language message, wherein the language input command includes a target environment data and a At least one of the auxiliary environmental data; a processor electrically connected to the message transceiving interface and including a semantic analysis component, the processor is used to receive the language input command and selectively generate the language input command not included The target environmental data or the auxiliary environmental data, and analyzing the target environmental data and the auxiliary environmental data with the semantic analysis element; and an environmental knowledge base, interconnected with the processor, and including multiple data points; wherein the processing The device analyzes an optimal correlation between the target environmental data and the auxiliary environmental data according to the data points of the environmental knowledge base, and generates a query command according to the optimal correlation, and according to the query command and the The environmental knowledge base generates and sends the response message to the message receiving and sending interface.

本發明在於提供一種環境資訊問答系統與方法,當使用者傳送的訊息不夠完整,此系統與方法能依據不同的氣象狀況,對使用者的問題做回應,有效地減少機器人搜尋資料所耗費的時間和硬體資源,讓使用者能更精確地根據不同的氣象狀況預測和評估自然災害。The present invention is to provide an environmental information question answering system and method. When the information transmitted by the user is not complete, the system and method can respond to the user's questions according to different weather conditions, effectively reducing the time spent by the robot searching for data And hardware resources, so that users can more accurately predict and evaluate natural disasters according to different weather conditions.

以上之關於本揭露內容之說明及以下之實施方式之說明係用以示範與解釋本發明之精神與原理,並且提供本發明之專利申請範圍更進一步之解釋。The above description of the disclosure and the following description of the embodiments are used to demonstrate and explain the spirit and principle of the present invention, and provide a further explanation of the scope of the patent application of the present invention.

以下在實施方式中詳細敘述本發明之詳細特徵以及優點,其內容足以使任何熟習相關技藝者了解本發明之技術內容並據以實施,且根據本說明書所揭露之內容、申請專利範圍及圖式,任何熟習相關技藝者可輕易地理解本發明相關之目的及優點。以下之實施例係進一步詳細說明本發明之觀點,但非以任何觀點限制本發明之範疇。The following describes in detail the detailed features and advantages of the present invention in the embodiments. The content is sufficient for any person skilled in the relevant art to understand and implement the technical content of the present invention, and according to the contents disclosed in this specification, the scope of patent application and the drawings Anyone skilled in the relevant art can easily understand the purpose and advantages of the present invention. The following examples further illustrate the views of the present invention in detail, but do not limit the scope of the present invention in any way.

請參考圖1,圖1為依據本發明一實施例的環境資訊問答系統1的結構圖。如圖1所示,環境資訊問答系統1,包含訊息收發介面11、處理器13以及環境知識庫15。訊息收發介面11可以是具有接收語言訊息功能的介面,訊息收發介面並可依據所接收的語言訊息產生語言輸入指令,以及在環境資訊問答系統1的運作過程中接收回應訊息,並將回應訊息以文字或語音的形式呈現給使用者。舉例來說,訊息收發介面11可以是能接收或產生文字訊息的通訊軟體或網頁,或是能收發語音訊息的聲電轉換組件(例如:麥克風和喇叭)。需注意的是,因本發明的環境資訊問答系統1係應用在環境查詢與後續的災害評估與防災決策,因此語言輸入指令可包含目標環境資料與輔助環境資料。具體來說,上述的目標環境資料可以是與水利、氣象、地質相關的資料,或其他與相關自然災害的法規條文,例如:全國抽水機分佈狀況、雨量、氣溫、地震規模或是其他與防災相關的法規條文,而上述的輔助環境資料則可以是查詢目標環境資料所需的時間點、地點等資訊。換言之,若使用者提供的資訊係屬完整,則語言輸入指令係包含目標環境資料與輔助環境資料;然而,在使用者提供的資訊不夠完整的情況下,語言輸入指令只包含目標環境資料與輔助環境資料的其中之一。Please refer to FIG. 1, which is a structural diagram of an environmental information question answering system 1 according to an embodiment of the present invention. As shown in FIG. 1, the environmental information question and answer system 1 includes a message sending and receiving interface 11, a processor 13 and an environmental knowledge base 15. The message transceiving interface 11 may be an interface having a function of receiving language messages. The message transceiving interface may generate language input commands according to the received language messages, and receive response messages during the operation of the environmental information question answering system 1, and send the response messages to Present to the user in the form of text or speech. For example, the message sending and receiving interface 11 may be a communication software or a web page that can receive or generate text messages, or an acoustic-electric conversion component (such as a microphone and a speaker) that can send and receive voice messages. It should be noted that since the environmental information question answering system 1 of the present invention is applied to environmental inquiries and subsequent disaster assessment and disaster prevention decisions, language input commands may include target environmental data and auxiliary environmental data. Specifically, the above target environmental data may be data related to water conservancy, meteorology, and geology, or other laws and regulations related to natural disasters, such as the distribution of pumps nationwide, rainfall, temperature, earthquake scale, or other related disaster prevention. The provisions of laws and regulations, and the above-mentioned auxiliary environmental data may be information such as the time and place required to query the target environmental data. In other words, if the information provided by the user is complete, the language input command includes the target environment data and auxiliary environment data; however, when the information provided by the user is not complete, the language input command only includes the target environment data and auxiliary One of the environmental information.

處理器13可以是中央處理器(central processing unit,CPU)或任一種具計算功能的元件,而此處理器13包含語意分析元件131,並且與訊息收發介面11電性連接。在環境資訊問答系統1的運作過程中,處理器13可接收來自訊息收發介面11的語言輸入指令,並當語言輸入指令未同時包含目標環境資料與輔助環境資料時,選擇性地產生語言輸入指令未包含的目標環境資料或輔助環境資料,並以語意分析元件131分析目標環境資料與輔助環境資料。The processor 13 may be a central processing unit (central processing unit, CPU) or any element with a computing function, and the processor 13 includes a semantic analysis element 131 and is electrically connected to the message transceiving interface 11. During the operation of the environmental information question answering system 1, the processor 13 can receive language input commands from the messaging interface 11 and selectively generate language input commands when the language input commands do not include both target environment data and auxiliary environment data The target environmental data or auxiliary environmental data not included, and the semantic analysis component 131 analyzes the target environmental data and auxiliary environmental data.

環境知識庫15可以是任一種具儲存功能並與處理器13電性連接的實體硬碟,也可以是與處理器13通訊連結的雲端硬碟,並包含多筆資料點與多個資料路徑,其中前述的目標環境資料與輔助環境資料係關聯於該些資料點,且該些資料點係藉由該些資料路徑互相連接。在環境資訊問答系統1的運作過程中,環境知識庫15用於提供上述的資料點給處理器13,以使處理器13能依據該些資料點分析目標環境資料與輔助環境資料之間的最佳關聯性, 並依據最佳關聯性產生查詢指令,再根據查詢指令搜尋儲存於環境知識庫15的資料以產生回應訊息,並將回應訊息傳送至訊息收發介面11。The environmental knowledge base 15 can be any physical hard drive with storage function and electrically connected to the processor 13 or a cloud hard drive in communication with the processor 13 and contains multiple data points and multiple data paths. The aforementioned target environment data and auxiliary environment data are associated with the data points, and the data points are connected to each other through the data paths. During the operation of the environmental information question answering system 1, the environmental knowledge base 15 is used to provide the above-mentioned data points to the processor 13, so that the processor 13 can analyze the most between the target environmental data and the auxiliary environmental data based on the data points Optimal relevance, and generate a query command according to the best relevance, then search the data stored in the environmental knowledge base 15 according to the query command to generate a response message, and send the response message to the message sending and receiving interface 11.

承上所述,為能有效率地從環境知識庫15中找出使用者所需的資料,處理器13先以「最短路徑演算法」計算出目標環境資料與輔助環境資料之間的最佳關聯性,再將該最佳關聯性轉換為一系列的程式碼,做為前述的查詢指令。因此,處理器13可依據查詢指令,直接從環境知識庫15得到使用者所需的資訊。詳細來說,環境知識庫15包含多筆資料點與連接該些資料點的多個資料路徑,並形成一「知識模型」;處理器13則將儲存於環境知識庫15的資料點與資料路徑視為不同的節點與連線,並以使用者提供的輔助環境資料為起點,以使用者查詢的目標環境資料為終點,從上述的資料點中找出關聯性最強的兩資料點(一般可定義為資料路徑的總數或總和為最小值的一搜尋路徑),並將該路徑定義為上述的「最佳關聯性」。在找出最佳關聯性後,處理器13可將關聯於該最佳關聯性的該搜尋路徑,轉換為具體的程式指令(即為前述之「查詢指令」),並依據該轉換而得的程式指令,進入環境知識庫15找出該路徑所關聯的環境資料。As mentioned above, in order to efficiently find the data required by the user from the environmental knowledge base 15, the processor 13 first calculates the best between the target environmental data and the auxiliary environmental data using the "shortest path algorithm" Relevance, and then convert the best relevance into a series of codes as the aforementioned query command. Therefore, the processor 13 can directly obtain the information required by the user from the environmental knowledge base 15 according to the query instruction. In detail, the environmental knowledge base 15 includes multiple data points and multiple data paths connecting the data points, and forms a "knowledge model"; the processor 13 stores the data points and data paths stored in the environmental knowledge base 15 Treated as different nodes and connections, and take the auxiliary environment data provided by the user as the starting point, and the target environment data queried by the user as the end point, find the two most relevant data points from the above data points (generally available It is defined as a search path where the total number or sum of data paths is the minimum value), and this path is defined as the above-mentioned "best relevance". After finding the best relevance, the processor 13 may convert the search path associated with the best relevance into a specific program instruction (that is, the aforementioned "query instruction"), and obtain Program instructions, enter the environmental knowledge base 15 to find out the environmental data associated with the path.

為能具體地描述環境資訊問答系統1的運作流程,請參考圖2,圖2為依據本發明一實施例的環境資訊問答方法的流程圖。當使用者透過訊息收發介面11輸入包含語言訊息的文字指令或語音指令時,請參考步驟S11:訊息收發介面11依據所接收的語言訊息產生並傳送語言輸入指令到處理器13。當處理器13接收訊息收發介面11所傳送的語言輸入指令,請參考步驟S13:處理器13的語意分析元件131接收語言輸入指令所包含的目標環境資料與輔助環境資料的至少一者;其中目標環境資料為使用者欲詢問的氣象數據,例如雨量或溫度,輔助環境資料則為使用者欲詢問氣象數據的時間或地點。此外,語意分析元件131能分析輸入指令所包含的目標環境資料與輔助環境資料,以使處理器13能判斷語言輸入指令是否同時包含目標環境資料與輔助環境資料。當語言輸入指令不同時包含目標環境資料與輔助環境資料時,請參考步驟S15:處理器13選擇性地產生語言輸入指令未包含的目標環境資料或輔助環境資料,並以語意分析元件131分析目標環境資料與輔助環境資料。舉例來說,當使用者詢問「台北的雨量多少?」,環境資訊問答系統1先以語意分析元件131分析上述的語言輸入指令:目標環境資料為「雨量」且輔助環境資料為「台北」,處理器13再依此判斷該語言輸入指令尚缺少另一輔助環境資料「時間」,並自行產生一個時間資料(例如:一小時內),以補足語言輸入指令所缺少的資訊。To specifically describe the operation flow of the environmental information question answering system 1, please refer to FIG. 2, which is a flowchart of an environmental information question answering method according to an embodiment of the present invention. When a user enters a text command or a voice command including a language message through the messaging interface 11, please refer to step S11: the messaging interface 11 generates and sends a language input command to the processor 13 according to the received language message. When the processor 13 receives the language input command sent by the message transceiving interface 11, please refer to step S13: the semantic analysis component 131 of the processor 13 receives at least one of the target environment data and the auxiliary environment data included in the language input command; wherein the target Environmental data is meteorological data that the user wants to query, such as rainfall or temperature, and auxiliary environmental data is the time or place where the user wants to query the weather data. In addition, the semantic analysis component 131 can analyze the target environment data and the auxiliary environment data included in the input command, so that the processor 13 can determine whether the language input command includes both the target environment data and the auxiliary environment data. When the language input command does not include the target environment data and the auxiliary environment data, please refer to step S15: the processor 13 selectively generates target environment data or auxiliary environment data not included in the language input command, and analyzes the target with the semantic analysis component 131 Environmental data and auxiliary environmental data. For example, when the user asks "How much rainfall is Taipei?", the environmental information question answering system 1 first analyzes the above-mentioned language input command with the semantic analysis component 131: the target environmental data is "rainfall" and the auxiliary environmental data is "Taipei", The processor 13 further determines that the language input command is still missing another auxiliary environment data "time", and generates a time data (for example, within one hour) to supplement the information missing from the language input command.

承前段落所述,當語言輸入指令同時包含目標環境資料與輔助環境資料時,請接續S17:處理器13依據環境知識庫15的多筆資料點分析目標環境資料與輔助環境資料之間的最佳關聯性。簡單來說,當使用者詢問「台北的雨量多少?」,環境知識庫15裡可能包含與「台北」相關的多筆資料點,以及與「雨量」相關的多筆資料點,而處理器13可將搜尋所需時間最短的兩資料點視為最佳關聯性。接續,請參考步驟S19:處理器13依據最佳關聯性產生查詢指令,並依據查詢指令與環境知識庫15產生回應指令;其中查詢指令可由程式碼所組成,以便處理器13依據查詢指令從環境知識庫15中搜尋使用者所需的資料,並依據搜尋結果產生回應指令。於處理器13產生回應指令後,請參考步驟S21:處理器13傳送回應指令到訊息收發介面11,以及步驟S23:訊息收發介面11接收並呈現回應訊息,以供使用者閱讀或聆聽環境資訊問答系統1所提供的氣象資訊。As mentioned in the previous paragraph, when the language input command includes both the target environment data and the auxiliary environment data, please continue to S17: the processor 13 analyzes the best between the target environment data and the auxiliary environment data based on multiple data points of the environmental knowledge base 15 Relevance. To put it simply, when the user asks "How much rainfall is Taipei?", the environmental knowledge base 15 may contain multiple data points related to "Taipei" and multiple data points related to "Rainfall", and the processor 13 The two data points with the shortest search time can be regarded as the best relevance. To continue, please refer to step S19: the processor 13 generates a query command based on the best relevance, and generates a response command based on the query command and the environmental knowledge base 15; wherein the query command can be composed of program code so that the processor 13 can retrieve the environment from the query command The knowledge base 15 searches for the data required by the user, and generates a response command according to the search result. After the processor 13 generates a response command, please refer to step S21: the processor 13 transmits the response command to the message transceiving interface 11, and step S23: the message transceiving interface 11 receives and presents the response message for the user to read or listen to environmental information Q&A Weather information provided by System 1.

為更詳細地說明圖2的步驟S15與步驟S17,請參考圖3。圖3為依據本發明一實施例的環境資訊問答方法的細部流程圖。承前所述,語言輸入指令可能會因為使用者所提供的資訊不夠完整,而缺少目標環境資料或輔助環境資料。請參考步驟S151:當處理器13判斷語言輸入指令不包含輔助環境資料,處理器13以預設輔助條件或即時環境條件產生輔助環境資料;其中預設輔助條件係預先儲存於處理器13,即時環境條件則為選擇性地被儲存於環境知識庫15,當處理器13判斷環境知識庫15不具有即時環境條件,則以預設輔助條件產生輔助環境資料。具體來說,預設輔助條件可以是預設的時間(例如:最近的一小時內)或是預設的地點(例如:全台灣),當使用者僅詢問「雨量多少?」,處理器13可將其解讀為「全台灣在最近的一小時內雨量多少?」。另一方面,即時環境條件則可以是政府機關所發布的特殊氣象警報,例如豪雨警報。由於在特殊氣象警報期間,會有大量有防災決策需求的使用者查詢氣象狀況;因此,當使用者在豪雨警報時期間詢問「台北雨量多少?」,處理器13可自動提供三小時內的台北雨量,以便使用者根據有效的數據進行防災評估。此外,請參考步驟S153:當處理器13判斷語言輸入指令不包含目標環境資料,處理器13以預設氣象資料產生目標環境資料。簡單來說,目標環境資料可以是大眾詢問度最高的氣象數據;例如,當使用者詢問「今天台北天氣如何?」而使語言輸入指令缺少目標環境資料,處理器13可自行解讀為「今天台北的氣溫多少?」,並從環境知識庫15中搜尋相關資料。To explain step S15 and step S17 of FIG. 2 in more detail, please refer to FIG. 3. FIG. 3 is a detailed flowchart of an environmental information question answering method according to an embodiment of the invention. As mentioned above, language input commands may lack target environment data or auxiliary environment data due to incomplete information provided by users. Please refer to step S151: when the processor 13 determines that the language input command does not include auxiliary environment data, the processor 13 generates auxiliary environment data using preset auxiliary conditions or real-time environmental conditions; wherein the preset auxiliary conditions are stored in the processor 13 in advance, real-time The environmental conditions are selectively stored in the environmental knowledge base 15. When the processor 13 determines that the environmental knowledge base 15 does not have real-time environmental conditions, it generates auxiliary environmental data with preset auxiliary conditions. Specifically, the preset auxiliary condition may be a preset time (for example: within the last hour) or a preset location (for example: all of Taiwan). When the user only asks "how much rainfall?", the processor 13 It can be interpreted as "how much rainfall has the entire Taiwan had in the last hour?". On the other hand, the immediate environmental conditions may be special weather warnings issued by government agencies, such as heavy rain warnings. During the special weather warning period, there will be a large number of users with disaster prevention decision needs to query the weather conditions; therefore, when the user asks "How much rainfall in Taipei?" during the heavy rain warning period, the processor 13 can automatically provide Taipei within three hours Rainfall, so that users can make disaster assessments based on valid data. In addition, please refer to step S153: when the processor 13 determines that the language input command does not include the target environmental data, the processor 13 generates the target environmental data based on the preset weather data. To put it simply, the target environment data can be the most inquired meteorological data; for example, when the user asks "How is the weather in Taipei today?" and the language input command lacks the target environment data, the processor 13 can interpret it as "Today's Taipei What is the temperature?", and search for relevant information from the Environmental Knowledge Base 15.

請繼續參考圖3。當語言輸入指令已包含目標環境資料和輔助環境資料,請參考步驟S171:處理器13依據環境知識庫15的多筆資料點,產生目標環境資料與輔助環境資料之間的多個關聯性;其中該些資料點之間係以多個資料路徑互相連結,且目標環境資料與輔助環境資料係關聯於該些資料點。於處理器13產生目標環境資料與輔助環境資料之間的多個關聯性後,請接續步驟S173:處理器13計算該些關聯性的多個資料路徑的總和,並以總和為最小值的該關聯性做為最佳關聯性。簡單來說,當兩資料點之間的該些資料路徑的總和為最小值時,表示此兩筆資料點之間的關聯性最強,且處理器13搜尋資料所需的時間也最短;因此,藉由步驟S173,環境資訊問答系統1可有效率地提供使用者所需的氣象資料。Please continue to refer to Figure 3. When the language input command already includes the target environment data and the auxiliary environment data, please refer to step S171: the processor 13 generates multiple associations between the target environment data and the auxiliary environment data based on multiple data points of the environmental knowledge base 15; The data points are connected to each other by multiple data paths, and the target environmental data and the auxiliary environmental data are associated with the data points. After the processor 13 generates multiple correlations between the target environmental data and the auxiliary environmental data, please proceed to step S173: the processor 13 calculates the sum of the multiple data paths of the correlations, and takes the sum as the minimum value of the Relevance as the best relevance. Simply put, when the sum of the data paths between the two data points is the minimum, it means that the two data points have the strongest correlation, and the time required for the processor 13 to search for the data is also the shortest; therefore, By step S173, the environmental information question answering system 1 can efficiently provide the meteorological data required by the user.

此外,值得一提的是,因本環境資訊問答系統1提供查詢的資料並不限於氣象資料,凡舉與「自然環境」相關的資訊,例如:水利與災害相關法規條文、全國抽水機分佈狀況等資訊,皆能透過環境資訊問答系統1查訊,故前述的目標環境資料與輔助環境資料並不限於本揭露書中所舉例的氣象資料,且環境知識庫15所儲存的資料點除了能和氣象資料相關,更可以與水利與災害相關法規條文、全國抽水機分佈狀況或等資訊相關,本發明不以此為限。In addition, it is worth mentioning that the information provided by this environmental information question and answer system 1 is not limited to meteorological data. Any information related to "natural environment", such as: water conservancy and disaster related regulations, national distribution of pumps, etc. The information can be interrogated through the environmental information question and answer system 1. Therefore, the aforementioned target environmental data and auxiliary environmental data are not limited to the meteorological data exemplified in this disclosure, and the data points stored in the environmental knowledge base 15 are in addition to energy and weather. The data is related, and it can also be related to the provisions of laws and regulations related to water conservancy and disasters, the distribution status of the national pumping machines or other information, and the invention is not limited to this.

綜上所述,本發明在於提供一種環境資訊問答系統1與方法,當使用者傳送的訊息不夠完整,此系統與方法能依據不同的氣象狀況,對使用者的問題做回應,有效地減少機器人搜尋資料所耗費的時間和硬體資源,讓使用者能更精確地根據不同的氣象狀況預測和評估自然災害。In summary, the present invention is to provide an environmental information question answering system 1 and method. When the information transmitted by the user is not complete, the system and method can respond to the user's questions according to different weather conditions, effectively reducing the robot The time and hardware resources spent searching for data allow users to more accurately predict and assess natural disasters based on different weather conditions.

雖然本發明以前述之實施例揭露如上,然其並非用以限定本發明。在不脫離本發明之精神和範圍內,所為之更動與潤飾,均屬本發明之專利保護範圍。關於本發明所界定之保護範圍請參考所附之申請專利範圍。Although the present invention is disclosed as the foregoing embodiments, it is not intended to limit the present invention. Without departing from the spirit and scope of the present invention, all modifications and retouching are within the scope of patent protection of the present invention. For the protection scope defined by the present invention, please refer to the attached patent application scope.

1:環境資訊問答系統 11:訊息收發介面 13:處理器 15:環境知識庫 131:語意分析元件 1: Environmental information question and answer system 11: messaging interface 13: processor 15: Environmental Knowledge Base 131: Semantic analysis components

圖1為依據本發明一實施例的環境資訊問答系統的結構圖。 圖2為依據本發明一實施例的環境資訊問答方法的流程圖。 圖3為依據本發明一實施例的環境資訊問答方法的細部流程圖。 FIG. 1 is a structural diagram of an environmental information question answering system according to an embodiment of the present invention. 2 is a flowchart of an environmental information question answering method according to an embodiment of the invention. FIG. 3 is a detailed flowchart of an environmental information question answering method according to an embodiment of the invention.

Claims (9)

一種環境資訊問答方法,包含:以一訊息收發介面依據所接收的一語言訊息產生並傳送一語言輸入指令到一處理器,其中該語言輸入指令包含一目標環境資料與一輔助環境資料的至少一者;以該處理器的一語意分析元件接收該語言輸入指令所包含的該目標環境資料與該輔助環境資料的該至少一者,並選擇性地以該處理器產生該語言輸入指令未包含的該目標環境資料或該輔助環境資料,且以該語意分析元件分析該目標環境資料與該輔助環境資料;以該處理器依據一環境知識庫的多筆資料點,分析該目標環境資料與該輔助環境資料之間的一最佳關聯性;以該處理器依據該最佳關聯性產生一搜尋路徑,並將該搜尋路徑轉換為一查詢指令,並依據該查詢指令與該環境知識庫產生一回應指令;以該處理器傳送該回應指令到該訊息收發介面;以及以接收該回應指令的該訊息收發介面呈現一回應訊息。 An environmental information question and answer method, comprising: generating and transmitting a language input command to a processor according to a received language message with a message sending and receiving interface, wherein the language input command includes at least one of target environmental data and auxiliary environmental data A semantic analysis component of the processor to receive the at least one of the target environment data and the auxiliary environment data included in the language input command, and selectively generate the language input command not included in the processor by the processor The target environmental data or the auxiliary environmental data, and analyzing the target environmental data and the auxiliary environmental data with the semantic analysis element; using the processor to analyze the target environmental data and the auxiliary according to multiple data points of an environmental knowledge base An optimal relationship between environmental data; the processor generates a search path based on the optimal relationship, and converts the search path into a query command, and generates a response based on the query command and the environmental knowledge base Command; the processor sends the response command to the message transceiving interface; and the message transceiving interface receiving the response command presents a response message. 如請求項1所述的環境資訊問答方法,其中當該處理器判斷該語言輸入指令不包含該輔助環境資料時,選擇性地以該處理器產生該語言輸入指令未包含的該目標環境資料或該輔助環境資料,更包含:該處理器以一預設輔助條件或一即時環境條件產生該輔助環境資料; 其中該預設輔助條件係預先儲存於該處理器,且該預設輔助條件包含一預設時間條件或一預設地點條件的至少其中之一,該即時環境條件則係選擇性地被儲存於該環境知識庫,且該即時環境條件包含由政府機關所發布的一特殊氣象條件,當該處理器判斷該環境知識庫不具有該即時環境條件,則以該預設輔助條件產生該輔助環境資料。 The environmental information question and answer method according to claim 1, wherein when the processor determines that the language input command does not include the auxiliary environment data, the processor selectively generates the target environment data not included in the language input command or The auxiliary environmental data further includes: the processor generates the auxiliary environmental data with a preset auxiliary condition or a real-time environmental condition; The preset auxiliary condition is stored in the processor in advance, and the preset auxiliary condition includes at least one of a preset time condition or a preset location condition, and the real-time environmental condition is selectively stored in The environmental knowledge base, and the real-time environmental conditions include a special meteorological condition issued by a government agency, and when the processor determines that the environmental knowledge base does not have the real-time environmental conditions, the auxiliary environmental data is generated with the preset auxiliary conditions . 如請求項1所述的環境資訊問答方法,其中當該處理器判斷該語言輸入指令不包含該目標環境資料時,選擇性地以該處理器產生該語言輸入指令未包含的該目標環境資料或該輔助環境資料,更包含:該處理器以一預設氣象資料產生該目標環境資料。 The environmental information question and answer method according to claim 1, wherein when the processor determines that the language input command does not include the target environment data, the processor selectively generates the target environment data not included in the language input command or The auxiliary environmental data further includes: the processor generates the target environmental data with a preset meteorological data. 如請求項1所述的環境資訊問答方法,其中該些資料點係以多個資料路徑互相連結,且該些資料點係表示該目標環境資料與該輔助環境資料在該環境知識庫的儲存位置,當該處理器依據該環境知識庫的該些資料點,分析該目標環境資料與該輔助環境資料之間的該最佳關聯性,更包含:以該處理器依據該些資料點,產生該目標環境資料與該輔助環境資料之間的多個關聯性,其中該些關聯性係該目標環境資料與該輔助環境資料之間的該些資料路徑;以及以該處理器計算該些關聯性的該些資料路徑的一總和,並以該總和為最小值的該關聯性做為該最佳關聯性。 The environmental information question and answer method according to claim 1, wherein the data points are connected to each other by a plurality of data paths, and the data points represent storage locations of the target environmental data and the auxiliary environmental data in the environmental knowledge base , When the processor analyzes the best correlation between the target environment data and the auxiliary environment data according to the data points of the environmental knowledge base, further includes: the processor generates the data according to the data points Multiple correlations between the target environmental data and the auxiliary environmental data, wherein the correlations are the data paths between the target environmental data and the auxiliary environmental data; and the processor calculates the correlations A sum of the data paths, and the correlation with the sum as the minimum value is used as the best correlation. 一種環境資訊問答系統,包含: 一訊息收發介面,用於依據所接收的一語言訊息產生一語言輸入指令以及接收一回應指令,並呈現一回應訊息,其中該語言輸入指令包含一目標環境資料與一輔助環境資料的至少一者;一處理器,與該訊息收發介面電性連結,並包含一語意分析元件,該處理器用於接收該語言輸入指令,並選擇性地產生該語言輸入指令未包含的該目標環境資料或該輔助環境資料,且以該語意分析元件分析該目標環境資料與該輔助環境資料;以及一環境知識庫,與該處理器互相連結,並包含多筆資料點;其中該處理器根據該環境知識庫的該些資料點,分析該目標環境資料與該輔助環境資料之間的一最佳關聯性,並依據該最佳關聯性產生一搜尋路徑,將該搜尋路徑轉換為一查詢指令,並依據該查詢指令與該環境知識庫產生並傳送該回應指令至該訊息收發介面。 An environmental information question and answer system, including: A message transceiving interface for generating a language input command and receiving a response command according to a received language message, and presenting a response message, wherein the language input command includes at least one of a target environment data and an auxiliary environment data A processor, electrically connected to the message sending and receiving interface, and including a semantic analysis component, the processor is used to receive the language input command and selectively generate the target environment data or the auxiliary not included in the language input command Environmental data, and analyzes the target environmental data and the auxiliary environmental data with the semantic analysis component; and an environmental knowledge base, which is interconnected with the processor and contains multiple data points; wherein the processor is based on the environmental knowledge base The data points, analyze an optimal correlation between the target environmental data and the auxiliary environmental data, and generate a search path according to the optimal correlation, convert the search path into a query command, and based on the query The command and the environmental knowledge base generate and send the response command to the messaging interface. 如請求項5所述的環境資訊問答系統,更包含一預設輔助條件,其中該預設輔助條件包含一預設時間條件或一預設地點條件的至少其中之一,該預設輔助條件係預先儲存於該處理器,並用於當該處理器判斷該語言輸入指令不包含該輔助環境資料時,該處理器以該預設輔助條件產生該輔助環境資料。 The environmental information question answering system according to claim 5, further includes a preset auxiliary condition, wherein the preset auxiliary condition includes at least one of a preset time condition or a preset location condition, the preset auxiliary condition is It is stored in the processor in advance, and is used by the processor to generate the auxiliary environment data under the preset auxiliary conditions when the processor determines that the language input command does not include the auxiliary environment data. 如請求項5所述的環境資訊問答系統,更包含一即時環境條件,其中該即時環境條件包含由政府機關所發布的一特殊氣象條件,且該即時環境條件係選擇性地儲存於該環境知識庫,並用於當該處理器判斷該 語言輸入指令不包含該輔助環境資料,且該處理器判斷該環境知識庫不具有該即時環境條件時,該處理器以該預設輔助條件產生該輔助環境資料。 The environmental information question answering system as described in claim 5 further includes an instant environmental condition, wherein the instant environmental condition includes a special meteorological condition issued by a government agency, and the instant environmental condition is selectively stored in the environmental knowledge Library and used when the processor judges that When the language input command does not include the auxiliary environmental data, and the processor determines that the environmental knowledge base does not have the real-time environmental conditions, the processor generates the auxiliary environmental data with the predetermined auxiliary conditions. 如請求項5所述的環境資訊問答系統,更包含一預設氣象資料,該預設氣象資料用於當該處理器判斷該語言輸入指令不包含該目標環境資料時,該處理器以該預設氣象資料產生該目標環境資料。 The environmental information question and answer system as described in claim 5 further includes a preset meteorological data. The preset meteorological data is used when the processor determines that the language input command does not include the target environmental data. Let meteorological data generate the target environmental data. 如請求項5所述的環境資訊問答系統,該環境知識庫更包含多個資料路徑,其中該些資料路徑係用於將該些資料點互相連結,以使該處理器依據該些資料點產生該目標環境資料與該輔助環境資料之間的多個關聯性,並用於當該處理器依據該些資料點產生該目標環境資料與該輔助環境資料之間的該些關聯性時,該處理器計算該些關聯性的該些資料路徑的一總和,並以該總和為最小值的該關聯性做為該最佳關聯性,其中該些資料點係表示該目標環境與該輔助環境資料在該環境知識庫的儲存位置,該些關聯性係該目標環境資料與該輔助環境資料之間的該些資料路徑。 According to the environmental information question and answer system of claim 5, the environmental knowledge base further includes a plurality of data paths, wherein the data paths are used to connect the data points to each other, so that the processor generates the data points based on the data points Multiple correlations between the target environmental data and the auxiliary environmental data, and used by the processor when the processor generates the correlations between the target environmental data and the auxiliary environmental data according to the data points Calculate a sum of the data paths of the correlations, and use the correlation whose sum is the minimum as the best correlation, where the data points indicate that the target environment and the auxiliary environment data are in the The storage location of the environmental knowledge base, the correlations are the data paths between the target environmental data and the auxiliary environmental data.
TW108100803A 2019-01-09 2019-01-09 Enviromental information question and answer system and method TWI688873B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW108100803A TWI688873B (en) 2019-01-09 2019-01-09 Enviromental information question and answer system and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW108100803A TWI688873B (en) 2019-01-09 2019-01-09 Enviromental information question and answer system and method

Publications (2)

Publication Number Publication Date
TWI688873B true TWI688873B (en) 2020-03-21
TW202026912A TW202026912A (en) 2020-07-16

Family

ID=70766941

Family Applications (1)

Application Number Title Priority Date Filing Date
TW108100803A TWI688873B (en) 2019-01-09 2019-01-09 Enviromental information question and answer system and method

Country Status (1)

Country Link
TW (1) TWI688873B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWM547715U (en) * 2017-05-08 2017-08-21 日盛證券股份有限公司 Online robot customer service system
TWM552625U (en) * 2017-06-23 2017-12-01 Urad Co Ltd Advertising system with smart recommendations
TWM555527U (en) * 2017-10-02 2018-02-11 好險網科技股份有限公司 Smart agent robot system
TW201833730A (en) * 2017-03-02 2018-09-16 大陸商騰訊科技(深圳)有限公司 Information interaction method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW201833730A (en) * 2017-03-02 2018-09-16 大陸商騰訊科技(深圳)有限公司 Information interaction method and device
TWM547715U (en) * 2017-05-08 2017-08-21 日盛證券股份有限公司 Online robot customer service system
TWM552625U (en) * 2017-06-23 2017-12-01 Urad Co Ltd Advertising system with smart recommendations
TWM555527U (en) * 2017-10-02 2018-02-11 好險網科技股份有限公司 Smart agent robot system

Also Published As

Publication number Publication date
TW202026912A (en) 2020-07-16

Similar Documents

Publication Publication Date Title
US11138212B2 (en) Natural language response recommendation clustering for rapid retrieval
US20210342549A1 (en) Method for training semantic analysis model, electronic device and storage medium
JP2020521210A (en) Information processing method and terminal, computer storage medium
CN110019736B (en) Question-answer matching method, system, equipment and storage medium based on language model
US20210357587A1 (en) An intelligent response method and device
WO2019223362A1 (en) Automatic answering method and device
US20180082680A1 (en) Syntactic re-ranking of potential transcriptions during automatic speech recognition
US10558931B2 (en) Determining comprehensiveness of question paper given syllabus
US20220138770A1 (en) Method and apparatus for analyzing sales conversation based on voice recognition
CN111368029B (en) Interaction method, device and equipment based on intention triples and storage medium
CN110140140A (en) The detection and commission of psychomotor task
TWI688873B (en) Enviromental information question and answer system and method
CN117332068B (en) Man-machine interaction method and device, electronic equipment and storage medium
US11762937B2 (en) Information processing apparatus, information processing system, and method of processing information
WO2020119346A1 (en) Natural semantic comprehension method and apparatus, and computing device
US20230222120A1 (en) Methods and apparatus for retrieving information via an intermediate representation
US10585960B2 (en) Predicting locations for web pages and related techniques
US10083173B2 (en) Artificial intelligence based language interpretation system
Khan et al. Making Personal Digital Assistants Aware of What They Do Not Know.
CN111209391A (en) Information identification model establishing method and system and interception method and system
WO2020151318A1 (en) Corpus construction method and apparatus based on crawler model, and computer device
JP7443649B2 (en) Model update method, device, electronic device and storage medium
CN114818683B (en) Operation and maintenance method and device based on mobile terminal
CN113344550B (en) Flow processing method, device, equipment and storage medium
KR102694794B1 (en) Question-and-answer system, server and operation method for generating answer to user question based on rag technique