下面將結合本說明書實施例中的圖式,對本說明書實施例中的技術方案進行清楚、完整地描述,顯然,所描述的實施例僅僅是本說明書一部分實施例,而不是全部的實施例。基於本說明書中的實施例,本領域普通技術人員在沒有作出創造性勞動前提下所獲得的所有其他實施例,都應當屬於本說明書保護的範圍。
請一併參閱圖1、圖2、圖3、圖4、圖10、圖11、圖12和圖13。本說明書實施例提供一種資料處理系統。
在本實施例中,所述資料處理系統可以包括伺服器。所述伺服器可以為一個伺服器,還可以為包括多個伺服器的伺服器集群。所述伺服器可以用於提供至少一個文字資訊。每個文字資訊可以用於表達任意類型的主題,例如房地產、店鋪、公車站等主題。每個文字資訊可以對應有文字資訊標識。所述文字資訊標識可以用於標識文字資訊,例如可以為URL(Uniform Resource Locator)位址、或其它能夠定位文字資訊的資訊。每個文字資訊可以包括至少一個用於描述地理實體的實體詞。例如,某一文字資訊可以包括實體詞“萬科西溪蝶園”,實體詞“萬科西溪蝶園”可以用於描述地理實體萬科西溪蝶園社區建案。每個文字資訊中的實體詞可以關聯有位置資訊。所述位置資訊可以用於表示實體詞所描述地理實體的位置。所述位置資訊可以為經緯度資料、用於描述位置的文字、或用於描述位置的圖像等。在一個場景示例中,文字資訊中的實體詞可以具有指向該實體詞所關聯位置資訊的超鏈接。
在本實施例中,所述資料處理系統還可以包括第一終端設備。典型的第一終端設備例如可以為智慧手機、平板電子設備、便攜式電腦、個人數位助理(PDA)、伺服器、工控機(工業控制電腦)、個人電腦(PC機)、或一體機等。所述第一終端設備可以向所述伺服器發送文字資訊獲取請求;可以接收所述伺服器反饋的文字資訊;可以提供第一人機交互界面;可以在所述第一人機交互界面展示接收的文字資訊。在接收到針對所述第一人機交互界面中目標實體詞的觸發指令以後,所述第一終端設備可以在所述第一人機交互界面展示所述目標實體詞關聯的位置資訊。這樣,在閱讀文字資訊的過程中,使用者無需中斷閱讀過程,便可以在所述第一人機交互界面進行操作進而得到位置資訊,提高了閱讀體驗。
在本實施例的一個實施方式中,所述資料處理系統還可以包括第二終端設備。典型的第二終端設備例如可以為智慧手機、平板電子設備、便攜式電腦、個人數位助理(PDA)、伺服器、工控機(工業控制電腦)、個人電腦(PC機)、或一體機等。所述第二終端設備可以提供第二人機交互界面;可以接收使用者在所述第二人機交互界面輸入的文字資訊;可以向所述伺服器發送所述文字資訊;以便所述伺服器能夠從所述文字資訊中識別出至少一個用於描述地理實體的實體詞,獲取每個實體詞對應的位置資訊,將每個實體詞與其對應的位置資訊進行關聯。這樣,透過接收所述第二終端設備發來的文字資訊並進行處理,所述伺服器便可以提供一個或多個文字資訊。需要說明的是,考慮到向所述伺服器發送文字資訊的終端設備通常也可以展示所述伺服器發來的文字資訊,所述第二終端與所述第一終端設備可以相同,也可以不同。
請參閱圖1、圖11、圖12和圖13。本說明書實施例提供一種資料處理方法。所述資料處理方法以終端設備為執行主體。這裡的終端設備實現的功能可以與資料處理系統實施例中第一終端設備實現的功能相互參照。所述資料處理方法可以包括以下步驟。
步驟S10:提供人機交互界面。
在本實施例中,這裡的人機交互界面可以與資料處理系統實施例中的第一人機交互界面相互參照。具體地,所述人機交互界面可以理解為人與電腦之間傳遞、交換資訊的媒介和對話介面。典型的電腦例如可以為個人電腦、膝上型電腦、蜂窩電話、相機電話、智慧電話、個人數位助理、媒體播放器、導航設備、電子郵件設備、遊戲控制台、平板電腦、可穿戴設備、或者這些設備中的任何設備的組合。在所述人機交互界面可以展示有文字資訊。所述文字資訊可以包括至少一個用於描述地理實體的實體詞。每個實體詞可以關聯有位置資訊。在本實施例的一個實施方式中,所述人機交互界面中的實體詞在所述人機交互界面可以突出展示。突出展示的方式可以包括標紅、高亮、加下劃線等。
在本實施例中,所述資料處理方法可以應用於終端設備/伺服器的系統構架中,關於所述伺服器實現的功能可以參照資料處理系統實施例。所述終端設備可以接收文字資訊加載指令;可以向所述伺服器發送文字資訊獲取請求;所述文字資訊獲取請求中可以攜帶有文字資訊標識。所述伺服器可以接收所述文字資訊獲取請求;可以獲取所述文字資訊標識所標識的文字資訊;可以向所述終端設備發送獲取的文字資訊。所述終端設備可以接收所述伺服器反饋的文字資訊;可以展示人機交互界面;可以在所述人機交互界面展示接收的文字資訊。
所述文字資訊加載指令可以是所述終端設備自動產生的。例如,所述終端設備可以安裝有應用程式。所述應用程式在啟動以後,可以產生所述文字資訊加載指令。或者,所述文字資訊加載指令還可以是由使用者主動操作所觸發產生的。例如,所述終端設備可以是在檢測到一個或多個按鍵的任意組合,被按下、點擊、雙擊、或劃過,進而產生所述文字資訊加載指令。所述按鍵可以為虛擬按鍵或實體按鍵,所述虛擬按鍵例如可以為按鈕控件或圖形控件等,所述實體按鍵例如可以為按壓按鈕、搖杆按鈕、撥號盤、滑塊開關、或操縱杆等。另舉一例,所述終端設備還可以是在識別到預置手勢,進而產生所述文字資訊加載指令。
步驟S12:在接收到針對所述人機交互界面中目標實體詞的觸發指令以後,在所述人機交互界面展示所述目標實體詞關聯的位置資訊。
在本實施例中,在所述人機交互界面展示的文字資訊可以包括至少一個用於描述地理實體的實體詞。使用者可以使用任意對象,例如滑鼠、手指、或指示筆等,接觸所述文字資訊中的實體詞。所述接觸可以包括按下、點擊、雙擊、劃過等。所述終端設備在監測到所述接觸以後,可以產生所述觸發指令。所述終端設備可以以被接觸的實體詞為目標實體詞;可以在所述人機交互界面展示所述目標實體詞關聯的位置資訊。在一個場景示例中,所述人機交互界面展示的文字資訊中的每個實體詞可以具有超鏈接,實體詞的超鏈接可以指向該實體詞所關聯位置資訊。在接收到針對所述人機交互界面中目標實體詞的觸發指令以後,所述終端設備可以在所述人機交互界面展示所述目標實體詞的超鏈接指向的位置資訊。
所述終端設備可以向所述伺服器請求獲取所述目標實體詞關聯的位置資訊,所述位置資訊獲取請求中可以攜帶有所述目標實體詞。所述伺服器可以接收所述目標實體詞;可以獲取所述目標實體詞關聯的位置資訊;可以向所述終端設備發送獲取的位置資訊。所述終端設備可以接收所述伺服器反饋的位置資訊;可以在所述人機交互界面展示接收的位置資訊。
在本實施例的一個實施方式中,所述終端設備可以直接在所述人機交互界面展示所述目標實體詞關聯的位置資訊。
在本實施例的一個實施方式中,所述終端設備可以在所述人機交互界面展示資訊窗口;可以在所述資訊窗口展示所述目標實體詞關聯的位置資訊。所述資訊窗口可以覆蓋於所述人機交互界面的部分區域或全部區域之上。在一個場景示例中,所述終端設備可以在所述資訊窗口展示電子地圖;可以在所述電子地圖中對所述目標實體詞關聯的位置資訊所表示的位置進行標註;從而實現在所述資訊窗口間接展示所述目標實體詞關聯的位置資訊。進一步地,所述終端設備還可以接收關閉所述資訊窗口的觸發指令,進而可以關閉所述資訊窗口。關閉所述資訊窗口的觸發指令可以是在監測到指定區域被按下、點擊、雙擊、或劃過時產生。所述指定區域可以為所述人機交互界面中除去所述資訊窗口所佔據區域以外的其它任意區域。或者,關閉所述資訊窗口的觸發指令還可以是在識別到預置手勢時產生。
在本實施例中,所述終端設備可以提供人機交互界面;在所述人機交互界面展示有文字資訊;所述文字資訊包括至少一個用於描述地理實體的實體詞;每個實體詞關聯有位置資訊;在接收到針對所述人機交互界面中目標實體詞的觸發指令以後,在所述人機交互界面展示所述目標實體詞關聯的位置資訊。這樣,在閱讀文字資訊的過程中,使用者無需中斷閱讀過程,便可以在所述人機交互界面進行操作進而得到位置資訊,提高了閱讀體驗。
請參閱圖2和圖10。本說明書實施例提供另一種資料處理方法。所述資料處理方法以終端設備為執行主體。這裡的終端設備實現的功能可以與資料處理系統實施例中第二終端設備實現的功能相互參照。所述資料處理方法可以包括以下步驟。
步驟S20:提供人機交互界面。
在本實施例中,這裡的人機交互界面可以與資料處理系統實施例中的第二人機交互界面相互參照。所述終端設備可以接收文字資訊輸入指令,進而可以展示所述人機交互界面。例如,所述終端設備可以是在檢測到一個或多個按鍵的任意組合,被按下、點擊、雙擊、或劃過,進而產生所述文字資訊輸入指令。另舉一例,所述終端設備還可以是在識別到預置手勢,進而產生所述文字資訊輸入指令。
步驟S22:接收使用者在所述人機交互界面輸入的文字資訊。
在本實施例中,使用者可以在所述人機交互界面輸入文字資訊。所述終端設備可以接收輸入的文字資訊。例如,所述人機交互界面可以具有第一文字框,使用者可以在所述第一文字框輸入文字資訊。
步驟S24:向伺服器發送所述文字資訊。
在本實施例中,所述資料處理方法可以應用於終端設備/伺服器的系統構架中,關於所述伺服器實現的功能可以參照資料處理系統實施例。所述終端設備可以向所述伺服器發送所述文字資訊。所述伺服器可以接收所述文字資訊;可以從所述文字資訊中識別出至少一個用於描述地理實體的實體詞;可以獲取每個實體詞對應的位置資訊;可以將每個實體詞與其對應的位置資訊進行關聯。所述終端設備具體可以在接收到文字資訊發送指令以後,向伺服器發送所述文字資訊。例如,所述終端設備可以是在檢測到一個或多個按鍵的任意組合,被按下、點擊、雙擊、或劃過,進而產生所述文字資訊發送指令。另舉一例,所述終端設備還可以是在識別到預置手勢,進而產生所述文字資訊發送指令。
在本實施例的一個實施方式中,使用者還可以在所述人機交互界面輸入主題類型,所述主題類型可以為使用者輸入的文字資訊所表達主題的類型。所述終端設備可以接收使用者輸入的主題類型;可以向所述伺服器發送所述主題類型。所述伺服器可以接收所述主題類型;可以基於所述主題類型從所述文字資訊中識別出至少一個用於描述地理實體的實體詞。例如,所述人機交互界面可以具有第二文字框,使用者可以在所述第二文字框輸入主題類型。
在本實施例的一個實施方式中,使用者還可以在所述人機交互界面輸入地理區域標識,所述地理區域標識可以用於標識地理區域,所述地理區域的大小可以根據業務需要靈活設定,例如可以為街道、商圈、城市、國家、或多個國家組成的地區等。所述終端設備可以接收使用者輸入的地理區域標識;可以向所述伺服器發送所述地理區域標識。所述伺服器可以接收所述地理區域標識;可以基於所述地理區域標識獲取每個實體詞對應的位置資訊。例如,所述人機交互界面可以具有第三文字框,使用者可以在所述第三文字框輸入地理區域標識。
在本實施例的一個實施方式中,所述終端設備可以具備定位功能。所述定位功能可以透過GPS(Global Positioning System,全球定位系統)、BDS(BeiDou
Navigation Satellite System,北斗衛星導航系統)、
GLONASS(格洛納斯衛星導航系統)、伽利略衛星導航系統(Galileo satellite navigation system)、基站無線信號、WIFI(Wireless-Fidelity,無線保真)信號、藍牙(Bluetooth)信號等方式來實現,當然,也可以透過上述方式的任意組合來實現。如此,所述終端設備可以獲取自身的位置資訊(例如經緯度資料);可以向所述伺服器發送自身的位置資訊。所述伺服器可以接收所述位置資訊;可以獲取接收的位置資訊歸屬的地理區域;可以基於所述地理區域的地理區域標識獲取每個實體詞對應的位置資訊。
在本實施例中,所述終端設備可以提供人機交互界面;可以接收使用者在所述人機交互界面輸入的文字資訊;可以向伺服器發送所述文字資訊。這樣,透過接收所述第二終端設備發來的文字資訊並進行處理,所述伺服器便可以提供一個或多個文字資訊。
請一併參閱圖3和圖4。本說明書實施例提供一種資料處理方法。所述資料處理方法以伺服器為執行主體,可以包括以下步驟。
步驟S30:從文字資訊中識別出至少一個實體詞。
在本實施例中,所述文字資訊可以用於表達任意類型的主題,例如房地產、店鋪、公車站等。所述文字資訊可以為所述伺服器從資料源中獲取的,典型的資料源例如可以為百度知道、知乎社區、微博、或論壇等。例如,所述伺服器可以透過網路爬蟲(又稱為網路蜘蛛或網路機器人)從資料源中獲取文字資訊。或者,所述資料處理方法可以應用於終端設備/伺服器的系統構架中,這裡的終端設備實現的功能可以與資料處理系統實施例中第二終端設備實現的功能相互參照。所述文字資訊還可以為所述終端設備發來的。具體地,所述終端設備可以提供人機交互界面。使用者可以在所述人機交互界面輸入文字資訊。所述終端設備可以接收使用者輸入的文字資訊;可以向所述伺服器發送所述文字資訊。所述伺服器可以接收所述文字資訊。
所述實體詞可以用於描述地理實體,所述地理實體可以為公車站、社區建案、或店鋪等。例如,實體詞“青山大橋公車站”可以用於描述地理實體青山大橋公車站,實體詞“萬科西溪蝶園”可以用於描述地理實體萬科西溪蝶園社區建案,實體詞“肯德基圓融時代廣場店”可以用於描述地理實體肯德基店鋪。
在本實施例中,所述伺服器可以基於預置的實體詞詞典,從所述文字資訊中識別出至少一個實體詞。所述實體詞詞典可以包括一個或多個預先構建的實體詞。所述伺服器可以基於所述實體詞詞典,直接從所述文字資訊中識別出至少一個實體詞。或者,所述伺服器還可以將所述文字資訊進行分詞處理進而得到分詞集合,所述分詞集合可以包括至少一個分詞;可以基於所述實體詞詞典,從所述分詞集合中篩選出至少一個分詞作為實體詞。具體地,針對所述分詞集合中的每個分詞;所述伺服器可以查找所述分詞詞典中是否包括與該分詞相匹配的實體詞;若是,可以將該分詞作為篩選出的實體詞。這裡分詞與實體詞相匹配可以理解為:分詞與實體詞在表述上一致,或者,分詞與實體詞表達的含義相同。
在本實施例的一個實施方式中,預置的實體詞詞典的數量可以為一個。如此,所述伺服器可以基於該實體詞詞典,從所述文字資訊中識別出至少一個實體詞。
在本實施例的另一個實施方式中,預置的實體詞詞典的數量可以為多個。每個實體詞詞典可以對應有語義類型,所述語義類型可以為實體詞詞典中至少一個實體詞所表達語義的類型。例如,預置的實體詞詞典的數量可以為3個,具體可以包括實體詞詞典DA、DB、和DC。所述實體詞詞典DA中各個實體詞所表達語義的類型可以為公車站,例如具體可以包括實體詞青山大橋公車站、管委會公車站等。所述實體詞詞典DB中各個實體詞所表達語義的類型可以為社區建案,例如具體可以包括實體詞萬科西溪蝶園、綠地中央廣場等。所述實體詞詞典DC中各個實體詞所表達語義的類型可以為店鋪,例如具體可以包括實體詞肯德基圓融時代廣場店、德莊火鍋夢之城店。那麼,所述實體詞詞典DA對應的語義類型可以為公車站,所述實體詞詞典DB對應的語義類型可以為房地產,所述實體詞詞典DC對應的語義類型可以為店鋪。如此,所述伺服器可以確定所述文字資訊對應的主題類型;可以從預置的多個實體詞詞典中,選取對應的語義類型與所述主題類型相匹配的實體詞詞典;可以基於選取的實體詞詞典,從所述文字資訊中識別出至少一個實體詞。
所述文字資訊對應的主題類型可以為所述文字資訊所表達主題的類型。例如,所述文字資訊所表達的主題可以為社區建案,那麼,所述文字資訊對應的主題類型可以為房地產。另舉一例,所述文字資訊所表達的主題可以為餐廳,那麼,所述文字資訊對應的主題類型可以為店鋪。這裡語義類型與主題類型相匹配可以理解為:語義類型與主題類型在表述上一致,或者,語義類型與主題類型表達的含義相同。
所述伺服器可以基於數學模型識別所述文字資訊對應的主題類型。所述數學模型可以為貝葉斯分類模型、支持向量機分類模型(Support Vector Machine,SVM)、或卷積神經網路分類模型(Convolutional Neural Networks,CNN)等。或者,所述資料處理方法可以應用於終端設備/伺服器的系統構架中,這裡的終端設備實現的功能可以與資料處理系統實施例中第二終端設備實現的功能相互參照。具體地,所述終端設備可以向所述伺服器發送用於標識使用者的使用者標識。所述伺服器可以接收所述使用者標識;可以基於所述使用者標識對應的歷史文字資訊,確定步驟S10中文字資訊對應的主題類型。例如,所述伺服器可以將歷史文字資訊對應的主題類型作為步驟S10中文字資訊對應的主題類型。或者,所述終端設備可以提供人機交互界面。使用者可以在所述人機交互界面輸入所述文字資訊對應的主題類型。所述終端設備可以接收使用者輸入的主題類型;可以向所述伺服器發送所述主題類型。所述伺服器可以接收所述主題類型。
步驟S32:獲取每個實體詞對應的位置資訊。
在本實施例中,實體詞對應的位置資訊可以用於表示該實體詞所描述地理實體的位置。所述位置資訊可以為經緯度資料、用於描述位置的文字、或用於描述位置的圖像等。當然,所述位置資訊還可以為其它能夠表示位置的資訊,本實施例對此並不做具體限定。
在本實施例中,所述伺服器可以基於預置的興趣點標識集合,獲取每個實體詞對應的位置資訊。所述興趣點標識集合可以包括至少一個興趣點標識。每個興趣點標識可以用於標識地理實體、且可以對應有位置資訊。興趣點標識對應的位置資訊可以用於表示該興趣點標識所標識地理實體的位置。具體地,針對每個實體詞,所述伺服器可以從所述興趣點標識集合中選取與該實體詞相匹配的興趣點標識;可以將選取的興趣點標識對應的位置資訊作為該實體詞對應的位置資訊。這裡實體詞與興趣點標識相匹配可以理解為:實體詞描述的地理實體與興趣點標識所標識的地理實體相同。
在本實施例的一個實施方式中,預置的興趣點標識集合的數量可以為一個。如此,所述伺服器可以基於該興趣點標識集合,獲取每個實體詞對應的位置資訊。
在本實施例的另一個實施方式中,預置的興趣點標識集合的數量可以為多個。每個興趣點標識集合可以對應有地理區域標識,所述地理區域標識可以用於標識地理區域。所述地理區域的大小可以根據業務需要靈活設定,例如可以為街道、商圈、城市、國家、或多個國家組成的地區等。例如,預置的興趣點標識集合的數量可以為3個,具體可以包括興趣點標識集合IA、IB、和IC。所述興趣點標識集合IA對應的地理區域標識可以為CN-SZ,所述地理區域標識CN-SZ可以用於標識地理區域中國蘇州。所述興趣點標識集合IB對應的地理區域標識可以為CN-SH,所述地理區域標識CN-SH可以用於標識地理區域中國上海。所述興趣點標識集合IC對應的地理區域標識可以為CN-HZ,所述地理區域標識CN-HZ可以用於標識地理區域中國杭州。如此,所述伺服器可以獲取所述文字資訊對應的地理區域標識;可以從預置的多個興趣點標識集合中,選取對應的地理區域標識與獲取的地理區域標識相匹配的興趣點標識集合;可以基於選取的興趣點標識集合,獲取每個實體詞對應的位置資訊。這裡以興趣點標識集合對應的地理區域標識為第一地理區域標識,以獲取的地理區域標識為第二地理區域標識。那麼,所述第一地理區域標識與所述第二地理區域標識相匹配可以理解為:所述第一地理區域標識所標識的地理區域與所述第二地理區域標識所標識的地理區域相同,或者,所述第二地理區域標識所標識的地理區域位於所述第一地理區域標識所標識的地理區域以內。
在本實施方式中,所述資料處理方法可以應用於終端設備/伺服器的系統構架中,這裡的終端設備實現的功能可以與資料處理系統實施例中第二終端設備實現的功能相互參照。所述終端設備可以提供人機交互界面。使用者可以在所述人機交互界面輸入所述文字資訊對應的地理區域標識。所述終端設備可以接收使用者輸入的地理區域標識;可以向所述伺服器發送所述地理區域標識。所述伺服器可以接收所述地理區域標識。或者,所述終端設備可以具備定位功能。所述定位功能可以透過GPS(Global
Positioning System,全球定位系統)、BDS(BeiDou
Navigation Satellite System,北斗衛星導航系統)、
GLONASS(格洛納斯衛星導航系統)、伽利略衛星導航系統(Galileo satellite navigation system)、基站無線信號、WIFI(Wireless-Fidelity,無線保真)信號、藍牙(Bluetooth)信號等方式來實現,當然,也可以透過上述方式的任意組合來實現。如此,所述終端設備可以獲取自身的位置資訊(例如經緯度資料);可以向所述伺服器發送自身的位置資訊。所述伺服器可以接收所述位置資訊;可以獲取接收的位置資訊歸屬的地理區域;可以將所述地理區域的地理區域標識作為所述文字資訊對應的地理區域標識。當然,所述伺服器還可以採用其它方式獲取所述文字資訊對應的地理區域標識,本實施例對此並不做具體限定。
步驟S34:將每個實體詞與其對應的位置資訊進行關聯。
在本實施例中,所述伺服器可以將每個實體詞與其對應的位置資訊進行關聯,以便於能夠基於實體詞獲取到位置資訊。例如,所述伺服器可以為每個實體詞添加超鏈接,添加的超鏈接可以指向該實體詞對應的位置資訊。當然,所述伺服器還可以採用其它方式將每個實體詞與其對應的位置資訊進行關聯,本實施例對此並不做具體限定。
請一併參閱圖3、圖4和圖10。以下介紹本實施例的一個場景示例。所述場景示例可以應用於終端設備/伺服器的系統構架中。
在本場景示例中,所述終端設備可以運行有文章發佈應用程式。所述文章發佈應用程式可以提供人機交互界面。使用者可以在所述人機交互界面輸入文字資訊、主題類型、以及地理區域標識。使用者在輸入完成以後,可以點擊所述人機交互界面中的發送控件。所述文章發佈應用程式在檢測到所述發送控件被點擊以後,可以產生文字資訊發送指令,進而可以向所述伺服器發送所述文字資訊、所述主題類型、以及所述地理區域標識。
在本場景示例中,所述伺服器可以提供多個預置的實體詞詞典和多個預置的興趣點標識集合,每個實體詞詞典可以對應有語義類型,每個興趣點標識集合可以對應有地理區域標識。如此,所述伺服器可以接收所述文字資訊、所述主題類型、以及所述地理區域標識;可以從預置的多個實體詞詞典中,選取對應的語義類型與接收的主題類型相匹配的實體詞詞典;可以基於選取的實體詞詞典,從接收的文字資訊中識別出至少一個實體詞。所述伺服器可以從預置的多個興趣點標識集合中,選取對應的地理區域標識與接收的地理區域標識相匹配的興趣點標識集合;可以基於選取的興趣點標識集合,獲取每個實體詞對應的位置資訊。所述伺服器可以為每個實體詞添加超鏈接,添加的超鏈接可以指向該實體詞對應的位置資訊。這樣,使用者在閱讀所述文字資訊的過程中,無需中斷閱讀過程,可以透過實體詞關聯的位置資訊得到該實體詞所描述地理實體的位置,提高了閱讀體驗。
在本實施例中,所述伺服器可以從文字資訊中識別出至少一個實體詞;可以獲取每個實體詞對應的位置資訊;可以將每個實體詞與其對應的位置資訊進行關聯。這樣,使用者在閱讀所述文字資訊的過程中,無需中斷閱讀過程,可以透過實體詞關聯的位置資訊得到該實體詞所描述地理實體的位置,提高了閱讀體驗。
請參閱圖5。本說明書實施例提供一種終端設備。所述終端設備可以包括以下單元。
提供單元50,用於提供人機交互界面;在所述人機交互界面展示有文字資訊;所述文字資訊包括至少一個用於描述地理實體的實體詞;每個實體詞關聯有位置資訊;
展示單元52,用於在接收到針對所述人機交互界面中目標實體詞的觸發指令以後,在所述人機交互界面展示所述目標實體詞關聯的位置資訊。
請參閱圖6。本說明書實施例還提供另一種終端設備。所述終端設備可以包括顯示組件和處理器。
在本實施例中,所述顯示組件包括但不限於液晶(
Liquid Crystal Display,LCD)顯示器、陰極射線管(
Cathode Ray Tube,CRT)顯示器、和發光二極體(Light Emitting Diode,LED)顯示器等。所述顯示組件可以用於展示人機交互界面和位置資訊。
在本實施例中,所述處理器可以按任何適當的方式實現。例如,處理器可以採取例如微處理器或處理器以及儲存可由該(微)處理器執行的電腦可讀程式代碼(例如軟體或韌體)的電腦可讀媒介、邏輯閘、開關、專用積體電路(Application Specific Integrated Circuit,ASIC)、可程式化邏輯控制器和嵌入微控制器的形式等等。所述處理器可以用於控制所述顯示組件展示人機交互界面;在所述人機交互界面展示有文字資訊;所述文字資訊包括至少一個用於描述地理實體的實體詞;每個實體詞關聯有位置資訊;在接收到針對所述人機交互界面中目標實體詞的觸發指令以後,控制所述顯示組件在所述人機交互界面展示所述目標實體詞關聯的位置資訊。
請參閱圖7。本說明書實施例還提供另一種終端設備。所述終端設備可以包括以下單元。
提供單元70,用於提供人機交互界面;
接收單元72,用於接收使用者在所述人機交互界面輸入的文字資訊;
發送單元74,用於向伺服器發送所述文字資訊;以便所述伺服器能夠從所述文字資訊中識別出至少一個用於描述地理實體的實體詞,獲取每個實體詞對應的位置資訊,將每個實體詞與其對應的位置資訊進行關聯。
請參閱圖6。本說明書實施例還提供另一種終端設備。所述終端設備可以包括顯示組件和處理器。
在本實施例中,所述顯示組件包括但不限於液晶(
Liquid Crystal Display,LCD)顯示器、陰極射線管(
Cathode Ray Tube,CRT)顯示器、和發光二極體(Light Emitting Diode,LED)顯示器等。所述顯示組件可以用於展示人機交互界面。
在本實施例中,所述處理器可以按任何適當的方式實現。例如,處理器可以採取例如微處理器或處理器以及儲存可由該(微)處理器執行的電腦可讀程式代碼(例如軟體或韌體)的電腦可讀媒介、邏輯閘、開關、專用積體電路(Application Specific Integrated Circuit,ASIC)、可程式化邏輯控制器和嵌入微控制器的形式等等。所述處理器可以用於控制所述顯示組件展示人機交互界面;接收使用者在所述人機交互界面輸入的文字資訊;向伺服器發送所述文字資訊;以便所述伺服器能夠從所述文字資訊中識別出至少一個用於描述地理實體的實體詞,獲取每個實體詞對應的位置資訊,將每個實體詞與其對應的位置資訊進行關聯。
請參閱圖8。本說明書實施例提供一種伺服器。所述伺服器可以包括以下單元。
識別單元80,用於從文字資訊中識別出至少一個實體詞;每個實體詞用於描述地理實體;
獲取單元82,用於獲取每個實體詞對應的位置資訊;
關聯單元84,用於將每個實體詞與其對應的位置資訊進行關聯。
請參閱圖9。本說明書實施例提供一種伺服器。所述伺服器可以包括儲存器和處理器。
在本實施例中,所述儲存器包括但不限於動態隨機存取記憶體(Dynamic Random Access Memory,DRAM)和靜態隨機存取記憶體(Static Random Access Memory,SRAM)等。所述儲存器可以用於儲存電腦指令。
在本實施例中,所述處理器可以按任何適當的方式實現。例如,所述處理器可以採取例如微處理器或處理器以及儲存可由該(微)處理器執行的電腦可讀程式代碼(例如軟體或韌體)的電腦可讀媒介、邏輯閘、開關、專用積體電路(Application Specific Integrated Circuit,ASIC)、可程式化邏輯控制器和嵌入微控制器的形式等等。所述處理器可以用於執行所述電腦指令實現以下步驟:從文字資訊中識別出至少一個實體詞;每個實體詞用於描述地理實體;獲取每個實體詞對應的位置資訊;將每個實體詞與其對應的位置資訊進行關聯。
需要說明的是,本申請說明書中各個實施例均採用遞進的方式描述,各個實施例之間相同相似的部分互相參見即可,每個實施例重點說明的都是與其他實施例的不同之處。尤其,對於伺服器實施例和終端設備實施例而言,由於其基本相似於資料處理方法實施例,所以描述的比較簡單,相關之處參見資料處理方法實施例的部分說明即可。
另外,本領域技術人員應當能夠理解的是,所屬領域技術人員在閱讀完本申請說明書之後,可以無需創造性勞動想到本申請文件中列舉的部分或全部實施方式之間可以組合,這些組合也在本申請公開和保護的範圍內。
在20世紀90年代,對於一個技術的改進可以很明顯地區分是硬體上的改進(例如,對二極體、電晶體、開關等電路結構的改進)還是軟體上的改進(對於方法流程的改進)。然而,隨著技術的發展,當今的很多方法流程的改進已經可以視為硬體電路結構的直接改進。設計人員幾乎都透過將改進的方法流程程式化到硬體電路中來得到相應的硬體電路結構。因此,不能說一個方法流程的改進就不能用硬體實體模組來實現。例如,可程式化邏輯器件(
Programmable Logic Device, PLD)(例如現場可程式化閘陣列(Field Programmable Gate Array,FPGA))就是這樣一種積體電路,其邏輯功能由使用者對器件程式化來確定。由設計人員自行程式化來把一個數位系統“整合”在一片PLD上,而不需要請晶片製造廠商來設計和製作專用的積體電路晶片2。而且,如今,取代手工地製作積體電路晶片,這種程式化也多半改用“邏輯編譯器(logic compiler)”軟體來實現,它與程式開發撰寫時所用的軟體編譯器相類似,而要編譯之前的原始代碼也得用特定的程式化語言來撰寫,此稱之為硬體描述語言(Hardware Description
Language,HDL),而HDL 也並非僅有一種,而是有許多種,如ABEL(Advanced Boolean Expression Language)、AHDL(Altera Hardware Description Language)、
Confluence、CUPL(Cornell University Programming
Language)、HDCal、JHDL(Java Hardware Description
Language)、Lava、Lola、MyHDL、PALASM、RHDL (Ruby Hardware Description Language)等,目前最普遍使用的是VHDL(Very-High-Speed Integrated Circuit Hardware Description Language)與Verilog2。本領域技術人員也應該清楚,只需要將方法流程用上述幾種硬體描述語言稍作邏輯程式化並程式化到積體電路中,就可以很容易得到實現該邏輯方法流程的硬體電路。
上述實施例闡明的系統、裝置、模組或單元,具體可以由電腦晶片或實體實現,或者由具有某種功能的產品來實現。一種典型的實現設備為電腦。具體的,電腦例如可以為個人電腦、膝上型電腦、蜂窩電話、相機電話、智慧電話、個人數位助理、媒體播放器、導航設備、電子郵件設備、遊戲控制台、平板電腦、可穿戴設備或者這些設備中的任何設備的組合。
透過以上的實施方式的描述可知,本領域的技術人員可以清楚地瞭解到本說明書可借助軟體加必需的通用硬體平臺的方式來實現。基於這樣的理解,本說明書的技術方案本質上或者說對現有技術做出貢獻的部分可以以軟體產品的形式體現出來,該電腦軟體產品可以儲存在儲存媒介中,如ROM/RAM、磁碟、光碟等,包括若干指令用以使得一台電腦設備(可以是個人電腦,伺服器,或者網路設備等)執行本說明書各個實施例或者實施例的某些部分所述的方法。
本說明書可用於眾多通用或專用的電腦系統環境或配置中。例如:個人電腦、伺服器電腦、手持設備或便攜式設備、平板型設備、多處理器系統、基於微處理器的系統、機上盒、可程式化的消費電子設備、網路PC、小型電腦、大型電腦、包括以上任何系統或設備的分布式計算環境等等。
本說明書可以在由電腦執行的電腦可執行指令的一般上下文中描述,例如程式模組。一般地,程式模組包括執行特定任務或實現特定抽象資料類型的常式、程式、對象、組件、資料結構等等。也可以在分布式計算環境中實踐本說明書,在這些分布式計算環境中,由透過通訊網路而被連接的遠端處理設備來執行任務。在分布式計算環境中,程式模組可以位於包括儲存設備在內的本地和遠端電腦儲存媒介中。
雖然透過實施例描繪了本說明書,本領域普通技術人員知道,本說明書有許多變形和變化而不脫離本說明書的精神,希望所附的請求項包括這些變形和變化而不脫離本說明書的精神。The following will clearly and completely describe the technical solutions in the embodiments of this specification in conjunction with the drawings in the embodiments of this specification. Obviously, the described embodiments are only a part of the embodiments of this specification, not all of the embodiments. Based on the embodiments in this specification, all other embodiments obtained by those of ordinary skill in the art without creative work should fall within the protection scope of this specification.
Please refer to Figure 1, Figure 2, Figure 3, Figure 4, Figure 10, Figure 11, Figure 12 and Figure 13. The embodiment of this specification provides a data processing system.
In this embodiment, the data processing system may include a server. The server may be one server, or a server cluster including multiple servers. The server can be used to provide at least one text message. Each text information can be used to express any type of topic, such as real estate, shops, bus stops, etc. Each text information can correspond to a text information identifier. The text information identifier can be used to identify text information, for example, it can be a URL (Uniform Resource Locator) address, or other information that can locate text information. Each text information can include at least one entity word used to describe a geographic entity. For example, a certain text information can include the entity word "Vanke Xixi Butterfly Garden", and the entity word "Vanke Xixi Butterfly Garden" can be used to describe the geographic entity Vanke Xixi Butterfly Garden community project. Each entity word in the text information can be associated with location information. The location information can be used to indicate the location of the geographic entity described by the entity word. The location information may be latitude and longitude data, text used to describe the location, or an image used to describe the location. In an example scenario, the entity word in the text information may have a hyperlink to the location information associated with the entity word.
In this embodiment, the data processing system may further include a first terminal device. A typical first terminal device can be, for example, a smart phone, a tablet electronic device, a portable computer, a personal digital assistant (PDA), a server, an industrial computer (industrial control computer), a personal computer (PC), or an all-in-one computer. The first terminal device can send a text information acquisition request to the server; can receive text information fed back by the server; can provide a first human-computer interaction interface; can display and receive text information on the first human-computer interaction interface Text information for. After receiving the trigger instruction for the target entity word in the first human-computer interaction interface, the first terminal device may display the location information associated with the target entity word on the first human-computer interaction interface. In this way, in the process of reading text information, the user can operate on the first human-computer interaction interface without interrupting the reading process to obtain position information, which improves the reading experience.
In an implementation of this embodiment, the data processing system may further include a second terminal device. A typical second terminal device can be, for example, a smart phone, a tablet electronic device, a portable computer, a personal digital assistant (PDA), a server, an industrial computer (industrial control computer), a personal computer (PC), or an all-in-one computer. The second terminal device can provide a second human-computer interaction interface; can receive text information input by a user on the second human-computer interaction interface; can send the text information to the server; so that the server At least one entity word used to describe a geographic entity can be identified from the text information, location information corresponding to each entity word can be obtained, and each entity word can be associated with its corresponding location information. In this way, by receiving and processing the text information sent by the second terminal device, the server can provide one or more text information. It should be noted that, considering that the terminal device that sends text information to the server can usually also display the text information sent by the server, the second terminal and the first terminal device may be the same or different .
Please refer to Figure 1, Figure 11, Figure 12 and Figure 13. The embodiment of this specification provides a data processing method. The data processing method takes the terminal device as the execution subject. The functions implemented by the terminal device herein may be cross-referenced with the functions implemented by the first terminal device in the embodiment of the data processing system. The data processing method may include the following steps.
Step S10: Provide a human-computer interaction interface.
In this embodiment, the human-computer interaction interface here can be cross-referenced with the first human-computer interaction interface in the embodiment of the data processing system. Specifically, the human-computer interaction interface can be understood as a medium and dialogue interface for transferring and exchanging information between humans and computers. A typical computer can be, for example, a personal computer, a laptop, a cell phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or Any combination of these devices. Text information can be displayed on the human-computer interaction interface. The text information may include at least one entity word used to describe a geographic entity. Each entity word can be associated with location information. In an implementation of this embodiment, the entity words in the human-computer interaction interface may be prominently displayed on the human-computer interaction interface. The way of highlighting can include red, highlight, underline, etc.
In this embodiment, the data processing method can be applied to the system architecture of a terminal device/server, and the functions implemented by the server can refer to the data processing system embodiment. The terminal device can receive a text information loading instruction; can send a text information acquisition request to the server; the text information acquisition request can carry a text information identifier. The server can receive the text information obtaining request; can obtain the text information identified by the text information identifier; and can send the obtained text information to the terminal device. The terminal device can receive text information fed back by the server; can display a human-computer interaction interface; and can display the received text information on the human-computer interaction interface.
The text information loading instruction may be automatically generated by the terminal device. For example, the terminal device may be installed with an application program. After the application is started, the text information loading command can be generated. Alternatively, the text information loading command may also be triggered by a user's active operation. For example, the terminal device may detect that any combination of one or more keys is pressed, clicked, double-clicked, or swiped to generate the text information loading instruction. The button may be a virtual button or a physical button. The virtual button may be, for example, a button control or a graphic control. The physical button may be a push button, a rocker button, a dial, a slider switch, or a joystick, etc. . For another example, the terminal device may also recognize a preset gesture, and then generate the text information loading instruction.
Step S12: After receiving the trigger instruction for the target entity word in the human-computer interaction interface, display the location information associated with the target entity word on the human-computer interaction interface.
In this embodiment, the text information displayed on the human-computer interaction interface may include at least one entity word used to describe a geographic entity. The user can use any object, such as a mouse, a finger, or a stylus, to contact the physical words in the text information. The contact may include pressing, clicking, double clicking, swiping, and so on. The terminal device may generate the trigger instruction after detecting the contact. The terminal device may use the contacted entity word as the target entity word; and may display the location information associated with the target entity word on the human-computer interaction interface. In an example scenario, each entity word in the text information displayed on the human-computer interaction interface may have a hyperlink, and the hyperlink of the entity word may point to the location information associated with the entity word. After receiving the trigger instruction for the target entity word in the human-computer interaction interface, the terminal device may display the location information pointed to by the hyperlink of the target entity word on the human-computer interaction interface.
The terminal device may request the server to obtain location information associated with the target entity word, and the location information obtaining request may carry the target entity word. The server may receive the target entity word; may obtain location information associated with the target entity word; and may send the obtained location information to the terminal device. The terminal device can receive the location information fed back by the server; and can display the received location information on the human-computer interaction interface.
In an implementation of this embodiment, the terminal device may directly display the location information associated with the target entity word on the human-computer interaction interface.
In an implementation of this embodiment, the terminal device may display an information window on the human-computer interaction interface; and may display the location information associated with the target entity word in the information window. The information window may cover part or all of the human-computer interaction interface. In an example scenario, the terminal device may display an electronic map in the information window; the position indicated by the location information associated with the target entity word may be marked on the electronic map; The window indirectly displays the location information associated with the target entity word. Further, the terminal device can also receive a trigger instruction to close the information window, and then can close the information window. The trigger instruction to close the information window may be generated when it is detected that the designated area is pressed, clicked, double-clicked, or swiped. The designated area may be any other area in the human-computer interaction interface excluding the area occupied by the information window. Alternatively, the trigger instruction to close the information window may also be generated when a preset gesture is recognized.
In this embodiment, the terminal device may provide a human-computer interaction interface; text information is displayed on the human-computer interaction interface; the text information includes at least one entity word used to describe a geographic entity; each entity word is associated There is location information; after receiving a trigger instruction for the target entity word in the human-computer interaction interface, the location information associated with the target entity word is displayed on the human-computer interaction interface. In this way, in the process of reading text information, the user can operate on the human-computer interaction interface without interrupting the reading process to obtain position information, which improves the reading experience.
Please refer to Figure 2 and Figure 10. The embodiment of this specification provides another data processing method. The data processing method takes the terminal device as the execution subject. The functions implemented by the terminal device here may be cross-referenced with the functions implemented by the second terminal device in the embodiment of the data processing system. The data processing method may include the following steps.
Step S20: Provide a human-computer interaction interface.
In this embodiment, the human-computer interaction interface here can be cross-referenced with the second human-computer interaction interface in the embodiment of the data processing system. The terminal device can receive text information input instructions, and then can display the human-computer interaction interface. For example, the terminal device may detect that any combination of one or more keys is pressed, clicked, double-clicked, or swiped to generate the text information input instruction. For another example, the terminal device may also recognize a preset gesture, and then generate the text information input instruction.
Step S22: Receive text information input by the user on the human-computer interaction interface.
In this embodiment, the user can input text information on the human-computer interaction interface. The terminal device can receive the input text information. For example, the human-computer interaction interface may have a first text box, and the user can input text information in the first text box.
Step S24: Send the text information to the server.
In this embodiment, the data processing method can be applied to the system architecture of a terminal device/server, and the functions implemented by the server can refer to the data processing system embodiment. The terminal device may send the text information to the server. The server can receive the text information; can identify at least one physical word for describing a geographic entity from the text information; can obtain the location information corresponding to each physical word; and can associate each physical word with it To associate the location information of. Specifically, the terminal device may send the text information to the server after receiving the text information sending instruction. For example, the terminal device may detect that any combination of one or more keys is pressed, clicked, double-clicked, or swiped to generate the text information sending instruction. For another example, the terminal device may also recognize a preset gesture, and then generate the text information sending instruction.
In an implementation of this embodiment, the user may also input a topic type on the human-computer interaction interface, and the topic type may be the type of the topic expressed by the text information input by the user. The terminal device may receive the topic type input by the user; and may send the topic type to the server. The server may receive the topic type; at least one entity word for describing a geographic entity may be identified from the text information based on the topic type. For example, the human-computer interaction interface may have a second text box, and the user can input the subject type in the second text box.
In an implementation of this embodiment, the user can also input a geographic area identifier on the human-computer interaction interface. The geographic area identifier can be used to identify a geographic area. The size of the geographic area can be flexibly set according to business needs. , For example, it can be a street, a business district, a city, a country, or an area composed of multiple countries. The terminal device may receive the geographic area identifier input by the user; and may send the geographic area identifier to the server. The server may receive the geographic area identifier; and may obtain location information corresponding to each entity word based on the geographic area identifier. For example, the human-computer interaction interface may have a third text box, and the user may input a geographic area identifier in the third text box.
In an implementation of this embodiment, the terminal device may have a positioning function. The positioning function can be through GPS (Global Positioning System), BDS (BeiDou
Navigation Satellite System, Beidou satellite navigation system),
GLONASS (Glonass satellite navigation system), Galileo satellite navigation system (Galileo satellite navigation system), base station wireless signal, WIFI (Wireless-Fidelity, wireless fidelity) signal, Bluetooth (Bluetooth) signal and other methods to achieve, of course, It can also be achieved through any combination of the above methods. In this way, the terminal device can obtain its own location information (such as latitude and longitude data); and can send its own location information to the server. The server may receive the location information; may obtain the geographic area to which the received location information belongs; and may obtain the location information corresponding to each entity word based on the geographic area identifier of the geographic area.
In this embodiment, the terminal device can provide a human-computer interaction interface; can receive text information input by a user on the human-computer interaction interface; and can send the text information to a server. In this way, by receiving and processing the text information sent by the second terminal device, the server can provide one or more text information.
Please refer to Figure 3 and Figure 4 together. The embodiment of this specification provides a data processing method. The data processing method uses a server as an execution subject and may include the following steps.
Step S30: Identify at least one entity word from the text information.
In this embodiment, the text information can be used to express any type of topic, such as real estate, shops, bus stops, and so on. The text information may be obtained by the server from a data source, and a typical data source may be, for example, Baidu Know, Zhihu Community, Weibo, or Forum. For example, the server may obtain text information from the data source through a web crawler (also known as a web spider or web robot). Alternatively, the data processing method can be applied to a terminal device/server system architecture, and the functions implemented by the terminal device here can be cross-referenced with the functions implemented by the second terminal device in the embodiment of the data processing system. The text information may also be sent by the terminal device. Specifically, the terminal device may provide a human-computer interaction interface. The user can input text information on the human-computer interaction interface. The terminal device can receive text information input by a user; can send the text information to the server. The server can receive the text information.
The entity word may be used to describe a geographic entity, and the geographic entity may be a bus station, a community project, or a store. For example, the entity word "Qingshan Bridge Bus Station" can be used to describe the geographical entity Qingshan Bridge Bus Station, the entity word "Vanke Xixi Butterfly Garden" can be used to describe the geographical entity Vanke Xixi Butterfly Garden community construction project, the entity word "KFC Circle “Rong Times Square Store” can be used to describe KFC stores of geographic entities.
In this embodiment, the server may recognize at least one entity word from the text information based on a preset entity word dictionary. The entity word dictionary may include one or more pre-built entity words. The server may directly recognize at least one entity word from the text information based on the entity word dictionary. Alternatively, the server may also perform word segmentation processing on the text information to obtain a word segmentation set. The word segmentation set may include at least one word segmentation; at least one word segmentation may be selected from the word segmentation set based on the entity word dictionary As an entity word. Specifically, for each word segment in the word segmentation set; the server can look up whether the word segmentation dictionary includes an entity word matching the word segmentation; if so, the word segmentation can be used as the filtered entity word. Here, the match between the participle and the entity word can be understood as: the participle and the entity word are consistent in expression, or the participle and the entity word express the same meaning.
In an implementation of this embodiment, the number of preset entity word dictionaries may be one. In this way, the server can identify at least one entity word from the text information based on the entity word dictionary.
In another implementation of this embodiment, the number of preset entity word dictionaries may be multiple. Each entity word dictionary may correspond to a semantic type, and the semantic type may be a semantic type expressed by at least one entity word in the entity word dictionary. For example, the number of preset entity word dictionaries may be three, which may specifically include entity word dictionaries DA, DB, and DC. The semantic type expressed by each entity word in the entity word dictionary DA may be a bus station, for example, it may specifically include the entity words Qingshan Bridge Bus Station, Administrative Committee Bus Station, etc. The semantic type expressed by each entity word in the entity word dictionary DB may be a community proposal, for example, it may specifically include entity words Vanke Xixi Butterfly Garden, Greenland Central Plaza, etc. The semantic type expressed by each entity word in the entity word dictionary DC may be a store, for example, it may specifically include the entity word KFC Yuanrong Times Square Store and Dezhuang Hot Pot Dream City Store. Then, the semantic type corresponding to the entity word dictionary DA may be a bus station, the semantic type corresponding to the entity word dictionary DB may be real estate, and the semantic type corresponding to the entity word dictionary DC may be a shop. In this way, the server can determine the topic type corresponding to the text information; it can select the entity word dictionary whose semantic type matches the topic type from a plurality of preset entity word dictionaries; it can be based on the selected entity word dictionary. The entity word dictionary identifies at least one entity word from the text information.
The topic type corresponding to the text information may be the type of the topic expressed by the text information. For example, the topic expressed by the text information may be a community project, and then the topic type corresponding to the text information may be real estate. For another example, the topic expressed by the text information may be a restaurant, then the topic type corresponding to the text information may be a shop. Here the semantic type matches the topic type can be understood as: the semantic type and the topic type are consistent in expression, or the semantic type and the topic type have the same meaning.
The server may recognize the topic type corresponding to the text information based on the mathematical model. The mathematical model may be a Bayesian classification model, a support vector machine classification model (Support Vector Machine, SVM), or a convolutional neural network classification model (Convolutional Neural Networks, CNN), etc. Alternatively, the data processing method can be applied to a terminal device/server system architecture, and the functions implemented by the terminal device here can be cross-referenced with the functions implemented by the second terminal device in the embodiment of the data processing system. Specifically, the terminal device may send a user ID for identifying the user to the server. The server may receive the user identification; and may determine the topic type corresponding to the text information in step S10 based on the historical text information corresponding to the user identification. For example, the server may use the topic type corresponding to the historical text information as the topic type corresponding to the text information in step S10. Alternatively, the terminal device may provide a human-computer interaction interface. The user can input the subject type corresponding to the text information in the human-computer interaction interface. The terminal device may receive the topic type input by the user; and may send the topic type to the server. The server may receive the topic type.
Step S32: Obtain location information corresponding to each entity word.
In this embodiment, the location information corresponding to the entity word can be used to indicate the location of the geographic entity described by the entity word. The location information may be latitude and longitude data, text used to describe the location, or an image used to describe the location. Of course, the location information may also be other information that can indicate location, which is not specifically limited in this embodiment.
In this embodiment, the server may obtain location information corresponding to each entity word based on a preset set of interest point identifiers. The set of point of interest identifiers may include at least one point of interest identifier. Each point of interest identifier can be used to identify a geographic entity and can correspond to location information. The location information corresponding to the point of interest identifier can be used to indicate the location of the geographic entity identified by the point of interest identifier. Specifically, for each entity word, the server may select a point of interest identifier that matches the entity word from the set of point of interest identifiers; may use the location information corresponding to the selected point of interest identifier as the entity word correspondence Location information. Here, the matching of the entity word and the point of interest identification can be understood as: the geographic entity described by the entity word is the same as the geographic entity identified by the interest point identification.
In an implementation of this embodiment, the number of preset interest point identification sets may be one. In this way, the server can obtain the location information corresponding to each entity word based on the set of interest point identifiers.
In another implementation of this embodiment, the number of preset interest point identification sets may be multiple. Each point of interest identifier set may correspond to a geographic area identifier, and the geographic area identifier may be used to identify a geographic area. The size of the geographic area can be flexibly set according to business needs, for example, it can be a street, a business district, a city, a country, or a region composed of multiple countries, etc. For example, the number of preset interest point identification sets may be three, which may specifically include interest point identification sets IA, IB, and IC. The geographic area identifier corresponding to the set of interest point identifiers IA may be CN-SZ, and the geographic area identifier CN-SZ may be used to identify the geographic area Suzhou, China. The geographic area identifier corresponding to the set of interest point identifiers IB may be CN-SH, and the geographic area identifier CN-SH may be used to identify the geographic area Shanghai, China. The geographic region identifier corresponding to the set of interest point identifiers IC may be CN-HZ, and the geographic region identifier CN-HZ may be used to identify the geographic region Hangzhou, China. In this way, the server can obtain the geographic area identifier corresponding to the text information; it can select the set of interest point identifiers whose corresponding geographic area identifier matches the acquired geographic area identifier from a plurality of preset points of interest identifier sets ; The location information corresponding to each entity word can be obtained based on the selected point of interest identification set. Here, the geographic area identifier corresponding to the set of interest point identifiers is used as the first geographic area identifier, and the acquired geographic area identifier is used as the second geographic area identifier. Then, the matching of the first geographic area identifier and the second geographic area identifier can be understood as: the geographic area identified by the first geographic area identifier is the same as the geographic area identified by the second geographic area identifier. Alternatively, the geographic area identified by the second geographic area identifier is located within the geographic area identified by the first geographic area identifier.
In this embodiment, the data processing method can be applied to a terminal device/server system architecture, and the functions implemented by the terminal device here can be cross-referenced with the functions implemented by the second terminal device in the embodiment of the data processing system. The terminal device may provide a human-computer interaction interface. The user can input the geographic area identifier corresponding to the text information on the human-computer interaction interface. The terminal device may receive the geographic area identifier input by the user; and may send the geographic area identifier to the server. The server may receive the geographic area identifier. Alternatively, the terminal device may have a positioning function. The positioning function can be through GPS (Global
Positioning System, Global Positioning System), BDS (BeiDou
Navigation Satellite System, Beidou satellite navigation system),
GLONASS (Glonass satellite navigation system), Galileo satellite navigation system (Galileo satellite navigation system), base station wireless signal, WIFI (Wireless-Fidelity, wireless fidelity) signal, Bluetooth (Bluetooth) signal and other methods to achieve, of course, It can also be achieved through any combination of the above methods. In this way, the terminal device can obtain its own location information (such as latitude and longitude data); and can send its own location information to the server. The server may receive the location information; may obtain the geographic area to which the received location information belongs; may use the geographic area identifier of the geographic area as the geographic area identifier corresponding to the text information. Of course, the server may also use other methods to obtain the geographic area identifier corresponding to the text information, which is not specifically limited in this embodiment.
Step S34: Associate each entity word with its corresponding location information.
In this embodiment, the server can associate each entity word with its corresponding location information, so that location information can be obtained based on the entity word. For example, the server may add a hyperlink for each entity word, and the added hyperlink may point to the location information corresponding to the entity word. Of course, the server may also use other methods to associate each entity word with its corresponding location information, which is not specifically limited in this embodiment.
Please refer to Figure 3, Figure 4 and Figure 10 together. The following describes a scenario example of this embodiment. The scenario example can be applied to the system architecture of the terminal device/server.
In this scenario example, the terminal device may run an article publishing application. The article publishing application can provide a human-computer interaction interface. The user can input text information, topic type, and geographic area identification on the human-computer interaction interface. After completing the input, the user can click the send control in the human-computer interaction interface. After detecting that the sending control is clicked, the article publishing application can generate a text information sending instruction, and then can send the text information, the topic type, and the geographic area identifier to the server.
In this scenario example, the server can provide multiple preset entity word dictionaries and multiple preset interest point identification sets. Each entity word dictionary may correspond to a semantic type, and each interest point identification set may correspond to There is a geographical area identification. In this way, the server can receive the text information, the topic type, and the geographical area identifier; it can select the corresponding semantic type from a plurality of preset entity word dictionaries that matches the received topic type Entity word dictionary: Based on the selected entity word dictionary, at least one entity word can be identified from the received text information. The server may select, from a plurality of preset points of interest identifier sets, a set of points of interest identifiers whose corresponding geographic area identifiers match the received geographic area identifiers; it may acquire each entity based on the selected set of point of interest identifiers The location information corresponding to the word. The server may add a hyperlink for each entity word, and the added hyperlink may point to the location information corresponding to the entity word. In this way, the user does not need to interrupt the reading process in the process of reading the text information, and can obtain the location of the geographic entity described by the entity word through the location information associated with the entity word, which improves the reading experience.
In this embodiment, the server can identify at least one entity word from the text information; can obtain the location information corresponding to each entity word; and can associate each entity word with its corresponding location information. In this way, the user does not need to interrupt the reading process in the process of reading the text information, and can obtain the location of the geographic entity described by the entity word through the location information associated with the entity word, which improves the reading experience.
Please refer to Figure 5. The embodiment of this specification provides a terminal device. The terminal device may include the following units.
The providing unit 50 is configured to provide a human-computer interaction interface; text information is displayed on the human-computer interaction interface; the text information includes at least one entity word used to describe a geographic entity; each entity word is associated with location information;
The display unit 52 is configured to display the location information associated with the target entity word in the human-computer interaction interface after receiving the trigger instruction for the target entity word in the human-computer interaction interface.
Please refer to Figure 6. The embodiment of this specification also provides another terminal device. The terminal device may include a display component and a processor.
In this embodiment, the display component includes but not limited to liquid crystal (
Liquid Crystal Display, LCD) display, cathode ray tube (
Cathode Ray Tube (CRT) display, and Light Emitting Diode (LED) display, etc. The display component can be used to display the human-computer interaction interface and location information.
In this embodiment, the processor can be implemented in any suitable manner. For example, the processor may take the form of a microprocessor or a processor and a computer-readable medium storing computer-readable program codes (such as software or firmware) that can be executed by the (micro)processor, logic gates, switches, special integrated circuits Circuits (Application Specific Integrated Circuit, ASIC), programmable logic controllers and embedded microcontroller forms, etc. The processor may be used to control the display component to display a human-computer interaction interface; text information is displayed on the human-computer interaction interface; the text information includes at least one entity word used to describe a geographic entity; each entity word Position information is associated; after receiving a trigger instruction for the target entity word in the human-computer interaction interface, the display component is controlled to display the position information associated with the target entity word on the human-computer interaction interface.
Refer to Figure 7. The embodiment of this specification also provides another terminal device. The terminal device may include the following units.
The providing unit 70 is used to provide a human-computer interaction interface;
The receiving unit 72 is configured to receive text information input by the user on the human-computer interaction interface;
The sending unit 74 is configured to send the text information to the server; so that the server can identify at least one entity word for describing a geographic entity from the text information, and obtain location information corresponding to each entity word, Associate each entity word with its corresponding location information.
Please refer to Figure 6. The embodiment of this specification also provides another terminal device. The terminal device may include a display component and a processor.
In this embodiment, the display component includes but not limited to liquid crystal (
Liquid Crystal Display, LCD) display, cathode ray tube (
Cathode Ray Tube (CRT) display, and Light Emitting Diode (LED) display, etc. The display component can be used to display a human-computer interaction interface.
In this embodiment, the processor can be implemented in any suitable manner. For example, the processor may take the form of a microprocessor or a processor and a computer-readable medium storing computer-readable program codes (such as software or firmware) that can be executed by the (micro)processor, logic gates, switches, special integrated circuits Circuits (Application Specific Integrated Circuit, ASIC), programmable logic controllers and embedded microcontroller forms, etc. The processor may be used to control the display component to display the human-computer interaction interface; receive the text information input by the user on the human-computer interaction interface; send the text information to the server; At least one entity word for describing a geographic entity is identified in the predicate information, location information corresponding to each entity word is obtained, and each entity word is associated with its corresponding location information.
Refer to Figure 8. The embodiment of this specification provides a server. The server may include the following units.
The recognition unit 80 is used to recognize at least one entity word from the text information; each entity word is used to describe a geographic entity;
The obtaining unit 82 is used to obtain location information corresponding to each entity word;
The associating unit 84 is used for associating each entity word with its corresponding location information.
Refer to Figure 9. The embodiment of this specification provides a server. The server may include a storage and a processor.
In this embodiment, the storage includes but is not limited to dynamic random access memory (Dynamic Random Access Memory, DRAM) and static random access memory (Static Random Access Memory, SRAM), etc. The storage can be used to store computer instructions.
In this embodiment, the processor can be implemented in any suitable manner. For example, the processor may take the form of a microprocessor or a processor and a computer-readable medium storing computer-readable program codes (such as software or firmware) executable by the (micro)processor, logic gates, switches, special purpose The form of integrated circuit (Application Specific Integrated Circuit, ASIC), programmable logic controller and embedded microcontroller, etc. The processor may be used to execute the computer instructions to implement the following steps: identify at least one entity word from text information; each entity word is used to describe a geographic entity; obtain location information corresponding to each entity word; The entity word is associated with its corresponding location information.
It should be noted that the various embodiments in the specification of this application are described in a progressive manner, and the same or similar parts between the various embodiments can be referred to each other. Each embodiment focuses on the differences from other embodiments. Place. In particular, as for the server embodiment and the terminal device embodiment, since they are basically similar to the data processing method embodiment, the description is relatively simple, and the relevant parts can be referred to the part of the description of the data processing method embodiment.
In addition, those skilled in the art should be able to understand that, after reading the description of this application, those skilled in the art can think that some or all of the embodiments listed in this application can be combined without creative work, and these combinations are also in this application. Within the scope of application disclosure and protection.
In the 1990s, the improvement of a technology can be clearly distinguished from the improvement of the hardware (for example, the improvement of the circuit structure of diodes, transistors, switches, etc.) or the improvement of the software (for the method flow Improve). However, with the development of technology, the improvement of many methods and processes of today can be regarded as a direct improvement of the hardware circuit structure. Designers almost always get the corresponding hardware circuit structure by programming the improved method flow into the hardware circuit. Therefore, it cannot be said that the improvement of a method flow cannot be realized by the hardware entity module. For example, programmable logic devices (
Programmable Logic Device (PLD) (for example, Field Programmable Gate Array (FPGA)) is such an integrated circuit whose logic function is determined by the user's programming of the device. It is programmed by the designer to "integrate" a digital system on a PLD, without requiring the chip manufacturer to design and manufacture a dedicated integrated circuit chip 2. Moreover, nowadays, instead of manually making integrated circuit chips, this programming is mostly realized by using "logic compiler" software, which is similar to the software compiler used in program development and writing. The original code before compilation must also be written in a specific programming language, which is called Hardware Description Language (Hardware Description Language).
Language, HDL), and HDL is not only one, but there are many, such as ABEL (Advanced Boolean Expression Language), AHDL (Altera Hardware Description Language),
Confluence, CUPL (Cornell University Programming
Language), HDCal, JHDL (Java Hardware Description
Language), Lava, Lola, MyHDL, PALASM, RHDL (Ruby Hardware Description Language), etc. The most commonly used at present are VHDL (Very-High-Speed Integrated Circuit Hardware Description Language) and Verilog2. Those skilled in the art should also be clear that only need to logically program the method flow in the above-mentioned hardware description languages and program it into an integrated circuit, the hardware circuit that implements the logic method flow can be easily obtained.
The systems, devices, modules, or units explained in the above embodiments may be implemented by computer chips or entities, or implemented by products with certain functions. A typical implementation device is a computer. Specifically, the computer can be, for example, a personal computer, a laptop computer, a cell phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or Any combination of these devices.
From the description of the above embodiments, those skilled in the art can clearly understand that this specification can be implemented by means of software plus a necessary general hardware platform. Based on this understanding, the technical solution of this manual can be embodied in the form of a software product, which can be stored in storage media such as ROM/RAM, magnetic disk, An optical disc, etc., includes a number of instructions to make a computer device (which can be a personal computer, a server, or a network device, etc.) execute the methods described in each embodiment or some parts of the embodiment in this specification.
This manual can be used in many general or special computer system environments or configurations. For example: personal computers, server computers, handheld or portable devices, tablet devices, multi-processor systems, microprocessor-based systems, set-top boxes, programmable consumer electronic devices, network PCs, small computers, Large computers, distributed computing environments including any of the above systems or equipment, etc.
This manual may be described in the general context of computer-executable instructions executed by a computer, such as a program module. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. It is also possible to practice this specification in distributed computing environments. In these distributed computing environments, remote processing devices connected through a communication network perform tasks. In a distributed computing environment, program modules can be located in local and remote computer storage media including storage devices.
Although the description has been described through the embodiments, those of ordinary skill in the art know that there are many variations and changes in the specification without departing from the spirit of the specification, and it is hoped that the appended claims include these variations and changes without departing from the spirit of the specification.