CN112052657A - Method and device for generating house source text information, electronic equipment and storage medium - Google Patents

Method and device for generating house source text information, electronic equipment and storage medium Download PDF

Info

Publication number
CN112052657A
CN112052657A CN202010753676.3A CN202010753676A CN112052657A CN 112052657 A CN112052657 A CN 112052657A CN 202010753676 A CN202010753676 A CN 202010753676A CN 112052657 A CN112052657 A CN 112052657A
Authority
CN
China
Prior art keywords
space
explanation
text
house source
function
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202010753676.3A
Other languages
Chinese (zh)
Inventor
不公告发明人
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Urban Network Neighbor Information Technology Co Ltd
Original Assignee
Beijing Urban Network Neighbor Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Urban Network Neighbor Information Technology Co Ltd filed Critical Beijing Urban Network Neighbor Information Technology Co Ltd
Priority to CN202010753676.3A priority Critical patent/CN112052657A/en
Publication of CN112052657A publication Critical patent/CN112052657A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/166Editing, e.g. inserting or deleting
    • G06F40/186Templates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/166Editing, e.g. inserting or deleting

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Processing Or Creating Images (AREA)

Abstract

The invention provides a room source text information generation method, a room source text information generation device, electronic equipment and a storage medium, wherein the method comprises the following steps: according to a function space set contained in a virtual three-dimensional space of a target house source browsed by a user at present, acquiring an explanation text set of the target house source, wherein the explanation text set comprises: the optional feature explanation text set comprises a necessary feature explanation text set or a necessary feature explanation text set and an optional feature explanation text set, wherein the necessary feature explanation text set is an explanation text set obtained by respectively filling feature data of a necessary function space into a necessary feature description template, and the optional feature explanation text set is an explanation text set obtained by respectively filling feature data of an optional function space into an optional feature description template; and establishing a corresponding incidence relation between the explanation texts in the explanation text set and a function space set contained in the virtual three-dimensional space so as to generate the explanation texts in the virtual three-dimensional space of the target house source. The invention improves the accuracy of the output explained text.

Description

Method and device for generating house source text information, electronic equipment and storage medium
Technical Field
The invention relates to the technical field of virtual reality, in particular to a room source text information generation method and device, electronic equipment and a storage medium.
Background
With the outbreak and the continuation of epidemic situations in 2020, the on-line house finding of a house cannot be realized, and the demand of a tenant is met. The purpose of the tenant on-line browsing of the house source is achieved through a three-dimensional scene of Virtual Reality (Virtual Reality), and AI (Artificial Intelligence) house source explanation service is provided for the tenant.
In the prior art, an AI room source explanation function is simple, only a set of fixed conversational templates is provided, and when a variable value of a specific room source is obtained, the variable value is filled in the conversational template, so that text information of the room source is obtained.
Disclosure of Invention
In view of the above problems, embodiments of the present invention are proposed to provide a room source text information generating method, apparatus, electronic device and storage medium that overcome or at least partially solve the above problems.
According to a first aspect of the present invention, there is provided a room source text information generating method, including:
acquiring an explanation text set of a target house source according to a functional space set contained in a virtual three-dimensional space of the target house source currently browsed by a user,
the explanation text set of the target house source comprises: a set of mandatory feature explanation texts, or a set of mandatory feature explanation texts and a set of optional feature explanation texts, wherein,
the optional feature explanation text set is a set formed by correspondingly filling feature data belonging to the optional function space in the function space set into the optional feature description template generated aiming at the optional function space and the explanation text corresponding to each optional function space,
the selectable feature explanation text set is a set formed by correspondingly filling feature data of selectable function spaces into selectable feature description templates generated aiming at the selectable function spaces respectively and acquiring explanation texts corresponding to each selectable function space when the feature data belonging to the selectable function spaces exist in the function space set;
and establishing a corresponding association relationship between each explanation text in the explanation text set and a function space set contained in the virtual three-dimensional space of the target room source so as to generate the explanation text of the virtual three-dimensional space of the target room source.
Optionally, the method further includes:
the method comprises the steps of distinguishing a required function space and an optional function space from each function space of a sample house according to the attribute of each function space, generating a required feature description template according to the required function space, and generating an optional feature description template according to the optional function space.
Optionally, the method further includes:
and when the user enters a browsing mode of manually switching the functional space of the target house source to the virtual three-dimensional space of the target house source, responding to the triggering of the user to the explanation control of the virtual three-dimensional space of the target house source, and outputting an explanation text of the functional space of the target house source currently browsed by the user according to the association relation.
Optionally, the method further includes:
and when the user enters a browsing mode for automatically switching the functional space of the target house source to the virtual three-dimensional space of the target house source, responding to the triggering of the user on an explanation control of the virtual three-dimensional space of the target house source, and correspondingly outputting an explanation text of each displayed functional space of the target house source according to the association relation and a preset browsing sequence of each functional space of the target house source.
Optionally, the establishing a corresponding association relationship between each interpretation text in the interpretation text set and a function space set included in the virtual three-dimensional space of the target room source to generate the interpretation text of the virtual three-dimensional space of the target room source includes:
Splicing the explanation texts in the mandatory feature explanation text sets corresponding to each mandatory function space according to the splicing sequence of the corresponding mandatory feature description templates in each mandatory function space in the function space set to obtain the explanation texts corresponding to each mandatory function space;
when the selectable function spaces exist in the function space set, splicing the explanation texts in the selectable feature explanation text set corresponding to each selectable function space according to the splicing sequence of the corresponding selectable feature description template in each selectable function space in the function space set to obtain the explanation text corresponding to each selectable function space;
and generating an explanation text of the virtual three-dimensional space of the target house source according to the explanation text corresponding to each necessary function space, or generating the explanation text of the virtual three-dimensional space of the target house source according to the explanation text corresponding to each necessary function space and the explanation text corresponding to each optional function space.
Optionally, the method further includes:
acquiring an integral introduction text of the target house source;
the combining the explanation texts corresponding to each functional space according to the context semantic scene of each functional space to generate the explanation text of the virtual three-dimensional space of the target room source includes:
And combining the whole introduction text and the explanation text corresponding to each functional space according to the context semantic scene of each functional space to generate the explanation text of the virtual three-dimensional space of the target house source.
Optionally, the method further includes:
and converting the explanation text of the virtual three-dimensional space of the target house source into an audio file, wherein the audio file comprises an audio file of a mandarin chinese edition and at least one preset dialect edition, and is used for playing when a user browses the virtual three-dimensional space.
Optionally, the converting the explanation text of the virtual three-dimensional space of the target room source into an audio file includes:
and converting the explanation text of the virtual three-dimensional space of the target room source into an audio file according to the preset pronunciation and/or word pronunciation of the polyphones.
According to a second aspect of the present invention, there is provided a house source text information generating apparatus comprising:
a text set acquisition module for acquiring an explanation text set of a target house source according to a functional space set contained in a virtual three-dimensional space of the target house source currently browsed by a user,
the explanation text set of the target house source comprises: a set of mandatory feature explanation texts, or a set of mandatory feature explanation texts and a set of optional feature explanation texts, wherein,
The optional feature explanation text set is a set formed by correspondingly filling feature data belonging to the optional function space in the function space set into the optional feature description template generated aiming at the optional function space and the explanation text corresponding to each optional function space,
the selectable feature explanation text set is a set formed by correspondingly filling feature data of selectable function spaces into selectable feature description templates generated aiming at the selectable function spaces respectively and acquiring explanation texts corresponding to each selectable function space when the feature data belonging to the selectable function spaces exist in the function space set;
and the text space association module is used for establishing a corresponding association relationship between each explanation text in the explanation text set and a function space set contained in the virtual three-dimensional space of the target house source so as to generate the explanation text of the virtual three-dimensional space of the target house source.
Optionally, the apparatus further comprises:
the description template generation module is used for distinguishing the functional space into a necessary functional space and a selectable functional space in advance according to the attribute of each functional space of the sample house, generating the necessary feature description template according to the necessary functional space and generating the selectable feature description template according to the selectable functional space.
Optionally, the apparatus further comprises:
and the first explanation text output module is used for responding to the triggering of the explanation control of the virtual three-dimensional space of the target house source by the user when the user enters a browsing mode of manually switching the functional space of the target house source to the virtual three-dimensional space of the target house source, and outputting the explanation text of the functional space of the target house source, which corresponds to the current browsing of the user, according to the association relation.
Optionally, the apparatus further comprises:
and the first explanation text output module is used for responding to the triggering of the explanation control of the virtual three-dimensional space of the target house source by the user when the user enters a browsing mode for automatically switching the functional space of the target house source, and correspondingly outputting the explanation text of each displayed functional space of the target house source according to the browsing sequence of each functional space preset by the target house source and the incidence relation.
Optionally, the text space association module includes:
the text space association unit is used for splicing the explanation texts in the mandatory feature explanation text set corresponding to each mandatory function space according to the splicing sequence of the corresponding mandatory feature description template in each mandatory function space in the function space set to obtain the explanation texts corresponding to each mandatory function space; when the selectable function spaces exist in the function space set, according to the splicing sequence of the selectable feature description templates corresponding to each selectable function space in the function space set, splicing the explanation texts in the selectable feature explanation text set corresponding to each selectable function space to obtain the explanation texts corresponding to each selectable function space;
And the explanation text generating unit is used for generating an explanation text of the virtual three-dimensional space of the target house source according to the explanation text corresponding to each necessary function space, or generating the explanation text of the virtual three-dimensional space of the target house source according to the explanation text corresponding to each necessary function space and the explanation text corresponding to each optional function space.
Optionally, the apparatus further comprises:
the introduction text acquisition module is used for acquiring the whole introduction text of the target house source;
the explanation text generation unit is specifically configured to:
and combining the whole introduction text and the explanation text corresponding to each functional space according to the context semantic scene of each functional space to generate the explanation text of the virtual three-dimensional space of the target house source.
Optionally, the apparatus further comprises:
and the audio conversion module is used for converting the explanation text of the virtual three-dimensional space of the target house source into an audio file, wherein the audio file comprises an audio file of a mandarin version and at least one preset dialect version, and is used for playing when a user browses the virtual three-dimensional space.
Optionally, the audio conversion module is specifically configured to:
And converting the explanation text of the virtual three-dimensional space of the target room source into an audio file according to the preset pronunciation and/or word pronunciation of the polyphones.
According to a third aspect of the present invention, there is also provided an electronic device, a processor, a memory and a computer program stored on the memory and operable on the processor, the computer program, when executed by the processor, implementing the method for generating text information of a house source according to the first aspect.
According to a fourth aspect of the present invention, there is also provided a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the house source text information generating method according to the first aspect.
According to the house source text information generation method, the house source text information generation device, the electronic equipment and the storage medium, the explanation text set of the target house source is obtained according to the function space set contained in the virtual three-dimensional space of the target house source browsed by the user at present, and the corresponding association relationship is established between each explanation text in the explanation text set and the function space set contained in the virtual three-dimensional space of the target house source, so that the explanation text of the virtual three-dimensional space of the target house source is generated.
The foregoing description is only an overview of the technical solutions of the present invention, and the embodiments of the present invention are described below in order to make the technical means of the present invention more clearly understood and to make the above and other objects, features, and advantages of the present invention more clearly understandable.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the invention.
Fig. 1 is a flowchart illustrating steps of a room source text information generating method according to an embodiment of the present invention;
fig. 2 is a block diagram of a structure of a house source text information generating apparatus according to an embodiment of the present invention;
fig. 3 is a block diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
Exemplary embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the invention are shown in the drawings, it should be understood that the invention can be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the invention to those skilled in the art.
Fig. 1 is a flowchart illustrating steps of a room source text information generating method according to an embodiment of the present invention, as shown in fig. 1, the method may include:
step 101, acquiring an explanation text set of a target house source according to a function space set contained in a virtual three-dimensional space of the target house source currently browsed by a user.
Wherein the set of the explanation texts of the target house source comprises: a necessary feature explanation text set, or a necessary feature explanation text set and an optional feature explanation text set, wherein the necessary feature explanation text set is a set formed by correspondingly filling feature data belonging to a necessary function space in the function space set into necessary feature description templates generated for the necessary function space respectively and acquiring explanation texts corresponding to each necessary function space; the selectable feature explanation text set is a set formed by correspondingly filling feature data of selectable function spaces into selectable feature description templates generated aiming at the selectable function spaces respectively and obtaining explanation texts corresponding to each selectable function space when the feature data belonging to the selectable function spaces exist in the function space set.
The functional spaces in the functional space set are spaces with different functions included in the target room source, and may include, for example, a living room, a main bed, a sub bed, a kitchen, a toilet, and the like. The functional space set may include a mandatory functional space and an optional functional space, where the mandatory functional space is a functional space that each set of house resources must include, that is, a functional space that an actual house resource includes in a minimum-area and minimum-dwelling-size structure, and may include, for example, a master-bedroom, a living room, a bathroom, and the like; the optional functional space is a functional space that is included by an existing source and not included by an existing source, and may include, for example, a sub-bed, a kitchen, etc.
The characteristic data of the optional functional space can comprise the characteristic data corresponding to the optional functional space and the integral characteristic data of the target house source, and the integral characteristic data of the target house source can comprise the position of a residential area where the house source is located, the area of the house source, the price of the house source, the floor of the house source, the room and room sanitation of a house, the presence or absence of an elevator of the house and the like.
The virtual three-dimensional space of the target room source is generated based on panoramic images of different positions in the target room source and space data of each functional space of the target room source. For a target room source, the set of functional spaces contained in the virtual three-dimensional space is fixed. The broker of the target house source can input the feature data of the target house source through the broker client, and can respectively input the feature data of the mandatory function space and the feature data of the optional function space in the target house source according to the guidance of the broker client, so that the electronic equipment executing the house source explanation method can acquire the feature data of the mandatory function space and the feature data of the optional function space in the target house source. After acquiring the feature data of the optional function space and the feature data of the optional function space, respectively filling the feature data of each optional function space into an optional feature description template generated aiming at the optional function space to obtain a set consisting of the explanation texts of each optional function space, namely an optional feature explanation text set; when feature data belonging to selectable function spaces exist in the function space set, the feature data of each selectable function space are respectively filled into selectable feature description templates generated aiming at the selectable function spaces to obtain a set formed by the explanation texts of each selectable function space, and then the selectable feature explanation text set is obtained.
The optional feature description template comprises a language template of an optional function space and feature variables of the optional function space. The surgery template may be, for example: the house source is located in an a cell, with or without parking spaces, and walking to a B site of the subway probably takes C minutes, where a, B, C are characteristic variables. One of the optional functional spaces may correspond to one or more optional feature description templates, and one of the optional feature description templates may include one or more words. An optional functional space may correspond to an optional feature description template, which may include a sentence or words.
And corresponding feature description templates are respectively arranged for each optional function space and each optional function space, so that an explanation text set of the functional space is generated after specific feature data is acquired, explanation texts in the explanation text set can be flexibly spliced, and explanation texts with different explanation sequences can be generated for each function space.
In one embodiment of the invention, the method further comprises: the method comprises the steps of distinguishing a required function space and an optional function space from each function space of a sample house according to the attribute of each function space, generating a required feature description template according to the required function space, and generating an optional feature description template according to the optional function space.
The method comprises the steps of dividing a function space into a required function space and an optional function space in advance according to the attribute of each function space of a sample house in practice, namely, taking the function space included by all the sample houses as the required function space, taking the function space included by some sample houses but not included by some sample houses as the optional function space, obtaining a corresponding feature description template according to the attribute of each function space, and if one function space is in a main-lying state, obtaining the feature description template corresponding to the main-lying state as the feature description template of the function space, so that the required feature description template of the required function space and the optional feature description template of the optional function space are obtained. And distinguishing the necessary function space and the optional function space in advance, and generating a corresponding feature description template, so that an explanation text corresponding to each function space can be conveniently generated subsequently.
102, establishing a corresponding association relationship between each explanation text in the explanation text set and a function space set contained in the virtual three-dimensional space of the target room source, so as to generate an explanation text of the virtual three-dimensional space of the target room source.
Because each explanation text in the explanation text set is generated according to the feature description template corresponding to each function space in the function space set, the corresponding association relationship can be established between the explanation text generated according to the feature description template and the function space corresponding to the feature description template, and thus the corresponding association relationship can be established between each explanation text in the explanation text set and each function space in the function space set contained in the virtual three-dimensional space of the target house source, and the explanation text of the virtual three-dimensional space of the target house source is generated.
In an embodiment of the present invention, the establishing a corresponding association relationship between each interpretation text in the interpretation text set and a function space set included in the virtual three-dimensional space of the target house source to generate the interpretation text of the virtual three-dimensional space of the target house source includes:
splicing the explanation texts in the mandatory feature explanation text sets corresponding to each mandatory function space according to the splicing sequence of the corresponding mandatory feature description templates in each mandatory function space in the function space set to obtain the explanation texts corresponding to each mandatory function space;
when the selectable function spaces exist in the function space set, splicing the explanation texts in the selectable feature explanation text set corresponding to each selectable function space according to the splicing sequence of the corresponding selectable feature description template in each selectable function space in the function space set to obtain the explanation text corresponding to each selectable function space;
and generating an explanation text of the virtual three-dimensional space of the target house source according to the explanation text corresponding to each necessary function space, or generating the explanation text of the virtual three-dimensional space of the target house source according to the explanation text corresponding to each necessary function space and the explanation text corresponding to each optional function space.
One function space can correspond to one or more feature description templates, namely one optional function space can correspond to one or more optional feature description templates, and one optional function space can correspond to one or more optional feature description templates, so that the explanation texts corresponding to the optional feature description templates in the optional feature explanation text set corresponding to each optional function space can be spliced according to the splicing sequence of the optional feature description templates corresponding to each optional function space in the function space set, and the explanation texts corresponding to each optional function space are obtained. And when the selectable function space exists in the function space set, splicing the explanation texts corresponding to the selectable feature description template in the selectable feature explanation text set corresponding to each selectable function space in the function space set to obtain the explanation text corresponding to each selectable function space. And when the optional function space does not exist in the function space set, combining the explanation texts corresponding to each optional function space to generate the explanation text of the virtual three-dimensional space of the target house source. And when the optional function spaces exist in the function space set, combining the explanation text corresponding to each optional function space and the explanation text corresponding to each optional function space to generate the explanation text of the virtual three-dimensional space of the target house source. When the explanation texts corresponding to each optional function space are spliced, context semantic scenes of the explanation texts of two adjacent optional function spaces are considered for splicing, namely the explanation texts in the virtual three-dimensional space of the target house source are generated according to the explanation texts and the context semantic scenes corresponding to each optional function space, so that the obtained explanation texts in the virtual three-dimensional space have stronger logic continuity. When the explanation text corresponding to each necessary function space and the explanation text corresponding to each optional text are spliced, the explanation text and the context semantic scene of two function spaces of a vector also need to be considered, namely, the explanation text of the virtual three-dimensional space of the target house source is generated according to the explanation text and the context semantic scene of two adjacent function spaces, wherein the two adjacent function spaces comprise two adjacent necessary function spaces, one adjacent necessary function space and one optional function space, or two adjacent optional function spaces.
The two adjacent functional spaces may be determined according to a functional space switched by a user, which is acquired when a browsing mode of the target house source functional space is manually switched, or may be determined according to a browsing sequence of each functional space preset by the target house source when the browsing mode of the target house source functional space is automatically switched.
The context semantic scene can play a role of coming up and going down, for example, two adjacent functional spaces are a living room and a balcony respectively, that is, the living room is introduced first and then the balcony is introduced, and the context semantic scene between the two functional spaces can be that "we introduced the living room above, and then we can see the balcony".
In one embodiment of the invention, the method further comprises: acquiring an integral introduction text of the target house source;
the combining the explanation texts corresponding to each functional space according to the context semantic scene of each functional space to generate the explanation text of the virtual three-dimensional space of the target room source includes: and combining the whole introduction text and the explanation text corresponding to each functional space according to the context semantic scene of each functional space to generate the explanation text of the virtual three-dimensional space of the target house source.
The whole introduction text can be introduced by the whole characteristics of the target house source and can be limited within a certain number of words, for example, the whole introduction text can be limited within 100 words, for example, the whole introduction text can be 'close to a subway, has a parking space, is an independent elevator, can cook, can support pets' and the like.
When the broker of the target house source issues the target house source, the whole introduction text of the target house source can be input through the broker client side, so that introduction of a whole dominant bright spot is carried out on the target house source. When the explanation text of the virtual three-dimensional space of the target house source is generated, the whole introduction text and the explanation text corresponding to each function space are combined according to the context semantic scene of each function space to generate the explanation text of the virtual three-dimensional space of the target house source, and the whole introduction text can be placed at the forefront of the explanation text of the virtual three-dimensional space when the whole introduction text and the explanation text of the function space are combined, so that a user can quickly know the characteristics of the target house source and quickly determine whether the requirement of the user is met, and the time for the user to screen the house source can be saved.
According to the house source text information generation method provided by the embodiment, the explanation text set of the target house source is obtained according to the function space set contained in the virtual three-dimensional space of the target house source browsed by the user currently, and the corresponding association relationship is established between each explanation text in the explanation text set and the function space set contained in the virtual three-dimensional space of the target house source so as to generate the explanation text of the virtual three-dimensional space of the target house source.
On the basis of the technical scheme, the method further comprises the following steps:
and when the user enters a browsing mode of manually switching the functional space of the target house source to the virtual three-dimensional space of the target house source, responding to the triggering of the user to the explanation control of the virtual three-dimensional space of the target house source, and outputting an explanation text of the functional space of the target house source currently browsed by the user according to the association relation.
When browsing the virtual three-dimensional space of the target house source, a user can select a browsing mode for manually switching the function space of the target house source or a browsing mode for automatically switching the function space of the target house source, if the user selects the browsing mode for manually switching the function space of the target house source, if the triggering of the user on the explanation control of the virtual three-dimensional space of the target house source is detected, the function space of the target house source currently browsed by the user is determined, and according to the corresponding association relationship between each explanation text in the explanation text set and the function space in the function space set, the explanation text of the function space of the target house source currently browsed by the user is determined, and the explanation text is output. The mode of outputting the explanation text can be outputting in a voice mode, or outputting in a text mode, that is, an audio file converted from the explanation text can be played, or the explanation text is displayed in a preset area in a display interface of a functional space of a target house source currently browsed by a user. Due to the fact that the corresponding explanation text can be output according to the function space of the target house source browsed currently by the user in the browsing mode of manually switching the function space of the target house source, accuracy of house source explanation is improved.
On the basis of the technical scheme, the method further comprises the following steps:
and when the user enters a browsing mode for automatically switching the functional space of the target house source to the virtual three-dimensional space of the target house source, responding to the triggering of the user on an explanation control of the virtual three-dimensional space of the target house source, and correspondingly outputting an explanation text of each displayed functional space of the target house source according to the association relation and a preset browsing sequence of each functional space of the target house source.
When browsing the virtual three-dimensional space of the target house source, a user can select a browsing mode for manually switching the function space of the target house source or a browsing mode for automatically switching the function space of the target house source, if the user selects the browsing mode for manually switching the function space of the target house source, if the triggering of the user on the explanation control of the virtual three-dimensional space of the target house source is detected, the currently displayed function space is determined according to the browsing sequence of each function space preset by the target house source, and the explanation text corresponding to the currently displayed function space is output according to the corresponding association relationship between each explanation text in the explanation text set and the function space in the function space set, so that the explanation text of the function space of each displayed target house source can be correspondingly output according to the browsing sequence. The mode of outputting the explanation text of the function space may be outputting in a voice mode, or outputting in a text mode, that is, playing an audio file converted from the explanation text of the function space, or displaying the explanation text of the function space in a preset area in a display interface of the currently displayed function space. Because the corresponding explanation text can be output according to the currently displayed function space of the target house source in the browsing mode of automatically switching the function space of the target house source, the accuracy of the house source explanation is improved.
On the basis of the technical scheme, the method further comprises the following steps:
and converting the explanation text of the virtual three-dimensional space of the target house source into an audio file, wherein the audio file comprises an audio file of a mandarin chinese edition and at least one preset dialect edition, and is used for playing when a user browses the virtual three-dimensional space.
The preset dialect can be eight dialects divided by the urban region of Chinese, and can include a northern dialect, a Wu dialect, a Xiang dialect, a Jiangxi dialect, a Hakka dialect, a Minnan dialect, a Min eastern dialect and a Guangdong dialect.
When the explanation text of the virtual three-dimensional space of the target house source is converted into the audio file, the explanation text of the virtual three-dimensional space can be respectively converted into the audio files of a mandarin version and at least one preset dialect version, so that the standard mandarin explanation capability and the explanation capabilities of different dialects can be provided, a user can select a version suitable for the user, and the audio file of the version selected by the user can be played when the user browses the virtual three-dimensional space of the target house source.
On the basis of the above technical solution, the converting the explanation text of the virtual three-dimensional space of the target room source into an audio file includes: and converting the explanation text of the virtual three-dimensional space of the target room source into an audio file according to the preset pronunciation and/or word pronunciation of the polyphones.
For polyphones, since polyphones have specific pronunciations in the area of renting and selling house resources, the pronunciations of the polyphones can be preset and/or the pronunciations of the polyphones in words can be set, that is, the word pronunciations, such as polyphones in units of cities, are preset to be heavy (chong) celebration, and are forced to be read as rooms (ji ā n) like specific industry terms, but not as rooms (ji n), and are forced to be read as long (chang) when encountering long, because in a renting house scene, there is no word context related to long (zhang). And writing the preset pronunciation and/or word pronunciation of the polyphones into a polyphone word stock.
When the explanation text of the virtual three-dimensional space of the target house source is converted into an audio file, the explanation text can be segmented, each word in the explanation text is determined, a preset polyphonic word stock is inquired according to the sequence of each word in the explanation text, if the polyphonic word stock comprises the current word, the current word is read according to the pronunciation in the polyphonic word stock, and if the polyphonic word stock does not comprise the current word, the current word is read according to the general pronunciation, so that the explanation text of the virtual three-dimensional space of the target house source is converted into the audio file. Because the pronunciation of polyphone is considered when the explanation text is converted into the audio file, more accurate and humanized reading can be carried out on the context words of the polyphone, and the accuracy of the house source explanation is further improved.
It should be noted that, for simplicity of description, the method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present invention is not limited by the illustrated order of acts, as some steps may occur in other orders or concurrently in accordance with the embodiments of the present invention. Further, those skilled in the art will appreciate that the embodiments described in the specification are presently preferred and that no particular act is required to implement the invention.
Fig. 2 is a block diagram of a structure of a house source text information generating apparatus according to an embodiment of the present invention, and as shown in fig. 2, the house source text information generating apparatus may include:
a text set obtaining module 201, configured to obtain an explanation text set of a target room source according to a function space set included in a virtual three-dimensional space of the target room source currently browsed by a user,
the explanation text set of the target house source comprises: a set of mandatory feature explanation texts, or a set of mandatory feature explanation texts and a set of optional feature explanation texts, wherein,
the optional feature explanation text set is a set formed by correspondingly filling feature data belonging to the optional function space in the function space set into the optional feature description template generated aiming at the optional function space and the explanation text corresponding to each optional function space,
The selectable feature explanation text set is a set formed by correspondingly filling feature data of selectable function spaces into selectable feature description templates generated aiming at the selectable function spaces respectively and acquiring explanation texts corresponding to each selectable function space when the feature data belonging to the selectable function spaces exist in the function space set;
a text space association module 202, configured to establish a corresponding association relationship between each interpretation text in the interpretation text set and a function space set included in the virtual three-dimensional space of the target room source, so as to generate an interpretation text of the virtual three-dimensional space of the target room source.
Optionally, the apparatus further comprises:
the description template generation module is used for distinguishing the functional space into a necessary functional space and a selectable functional space in advance according to the attribute of each functional space of the sample house, generating the necessary feature description template according to the necessary functional space and generating the selectable feature description template according to the selectable functional space.
Optionally, the apparatus further comprises:
and the first explanation text output module is used for responding to the triggering of the explanation control of the virtual three-dimensional space of the target house source by the user when the user enters a browsing mode of manually switching the functional space of the target house source to the virtual three-dimensional space of the target house source, and outputting the explanation text of the functional space of the target house source, which corresponds to the current browsing of the user, according to the association relation.
Optionally, the apparatus further comprises:
and the first explanation text output module is used for responding to the triggering of the explanation control of the virtual three-dimensional space of the target house source by the user when the user enters a browsing mode for automatically switching the functional space of the target house source, and correspondingly outputting the explanation text of each displayed functional space of the target house source according to the browsing sequence of each functional space preset by the target house source and the incidence relation.
Optionally, the text space association module includes:
the text space association unit is used for splicing the explanation texts in the mandatory feature explanation text set corresponding to each mandatory function space according to the splicing sequence of the corresponding mandatory feature description template in each mandatory function space in the function space set to obtain the explanation texts corresponding to each mandatory function space; when the selectable function spaces exist in the function space set, according to the splicing sequence of the selectable feature description templates corresponding to each selectable function space in the function space set, splicing the explanation texts in the selectable feature explanation text set corresponding to each selectable function space to obtain the explanation texts corresponding to each selectable function space;
And the explanation text generating unit is used for generating an explanation text of the virtual three-dimensional space of the target house source according to the explanation text corresponding to each necessary function space, or generating the explanation text of the virtual three-dimensional space of the target house source according to the explanation text corresponding to each necessary function space and the explanation text corresponding to each optional function space.
Optionally, the apparatus further comprises:
the introduction text acquisition module is used for acquiring the whole introduction text of the target house source;
the explanation text generation unit is specifically configured to:
and combining the whole introduction text and the explanation text corresponding to each functional space according to the context semantic scene of each functional space to generate the explanation text of the virtual three-dimensional space of the target house source.
Optionally, the apparatus further comprises:
and the audio conversion module is used for converting the explanation text of the virtual three-dimensional space of the target house source into an audio file, wherein the audio file comprises an audio file of a mandarin version and at least one preset dialect version, and is used for playing when a user browses the virtual three-dimensional space.
Optionally, the audio conversion module is specifically configured to:
And converting the explanation text of the virtual three-dimensional space of the target room source into an audio file according to the preset pronunciation and/or word pronunciation of the polyphones.
The house source text information generating apparatus provided in this embodiment obtains an explanation text set of a target house source through a text set obtaining module according to a function space set included in a virtual three-dimensional space of the target house source currently browsed by a user, and a text space association module establishes a corresponding association relationship between each explanation text in the explanation text set and the function space set included in the virtual three-dimensional space of the target house source to generate an explanation text of the virtual three-dimensional space of the target house source, since the explanation texts in the explanation text set and the function spaces in the function space set have corresponding association relations, so that only the explanation text corresponding to each function space can be obtained for output, therefore, the user can better know the information of the currently browsed function space, and the accuracy of the output explanation text is improved.
Fig. 3 is a block diagram of an electronic device according to an embodiment of the present invention. As shown in fig. 3, the electronic device 300 may include one or more processors 301 and one or more memories 302 connected to the processors 301. The electronic device 300 may also include an input interface 303 and an output interface 304 for communicating with another apparatus or system. Program code executed by the CPU of processor 301 may be stored in memory 302.
The processor 301 in the electronic device 300 calls the program code stored in the memory 302 to execute the house source text information generating method in the above-described embodiment.
The above elements in the above electronic device may be connected to each other by a bus, such as one of a data bus, an address bus, a control bus, an expansion bus, and a local bus, or any combination thereof.
There is also provided, in accordance with an embodiment of the present invention, a computer-readable storage medium having a computer program stored thereon, where the storage medium may be a Read-Only Memory (ROM) or a Read-write medium, such as a hard disk or a flash Memory. The computer program realizes the house source text information generation method of the foregoing embodiment when executed by a processor.
The embodiments in the present specification are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, apparatus, or computer program product. Accordingly, embodiments of the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, embodiments of the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
Embodiments of the present invention are described with reference to flowchart illustrations and/or block diagrams of methods, terminal devices (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing terminal to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing terminal, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing terminal to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing terminal to cause a series of operational steps to be performed on the computer or other programmable terminal to produce a computer implemented process such that the instructions which execute on the computer or other programmable terminal provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present invention have been described, additional variations and modifications of these embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the embodiments of the invention.
Finally, it should also be noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or terminal that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or terminal. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or terminal that comprises the element.
The method, the apparatus, the electronic device and the storage medium for generating the house source text information provided by the present invention are introduced in detail, and a specific example is applied in the text to explain the principle and the implementation of the present invention, and the description of the above embodiment is only used to help understanding the method and the core idea of the present invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (11)

1. A room source text information generation method is characterized by comprising the following steps:
acquiring an explanation text set of a target house source according to a functional space set contained in a virtual three-dimensional space of the target house source currently browsed by a user,
the explanation text set of the target house source comprises: a set of mandatory feature explanation texts, or a set of mandatory feature explanation texts and a set of optional feature explanation texts, wherein,
the optional feature explanation text set is a set formed by correspondingly filling feature data belonging to the optional function space in the function space set into the optional feature description template generated aiming at the optional function space and the explanation text corresponding to each optional function space,
The selectable feature explanation text set is a set formed by correspondingly filling feature data of selectable function spaces into selectable feature description templates generated aiming at the selectable function spaces respectively and acquiring explanation texts corresponding to each selectable function space when the feature data belonging to the selectable function spaces exist in the function space set;
and establishing a corresponding association relationship between each explanation text in the explanation text set and a function space set contained in the virtual three-dimensional space of the target room source so as to generate the explanation text of the virtual three-dimensional space of the target room source.
2. The house source text information generating method according to claim 1, comprising:
the method comprises the steps of distinguishing a required function space and an optional function space from each function space of a sample house according to the attribute of each function space, generating a required feature description template according to the required function space, and generating an optional feature description template according to the optional function space.
3. The house source text information generating method according to claim 1, comprising:
and when the user enters a browsing mode of manually switching the functional space of the target house source to the virtual three-dimensional space of the target house source, responding to the triggering of the user to the explanation control of the virtual three-dimensional space of the target house source, and outputting an explanation text of the functional space of the target house source currently browsed by the user according to the association relation.
4. The house source text information generating method according to claim 1, comprising:
and when the user enters a browsing mode for automatically switching the functional space of the target house source to the virtual three-dimensional space of the target house source, responding to the triggering of the user on an explanation control of the virtual three-dimensional space of the target house source, and correspondingly outputting an explanation text of each displayed functional space of the target house source according to the association relation and a preset browsing sequence of each functional space of the target house source.
5. The method for generating text information of a house source according to claim 1, wherein the establishing a corresponding association relationship between each explanation text in the explanation text set and a function space set included in the virtual three-dimensional space of the target house source to generate the explanation text of the virtual three-dimensional space of the target house source comprises:
splicing the explanation texts in the mandatory feature explanation text sets corresponding to each mandatory function space according to the splicing sequence of the corresponding mandatory feature description templates in each mandatory function space in the function space set to obtain the explanation texts corresponding to each mandatory function space;
When the selectable function spaces exist in the function space set, splicing the explanation texts in the selectable feature explanation text set corresponding to each selectable function space according to the splicing sequence of the corresponding selectable feature description template in each selectable function space in the function space set to obtain the explanation text corresponding to each selectable function space;
and generating an explanation text of the virtual three-dimensional space of the target house source according to the explanation text corresponding to each necessary function space, or generating the explanation text of the virtual three-dimensional space of the target house source according to the explanation text corresponding to each necessary function space and the explanation text corresponding to each optional function space.
6. The house-source text message generating method according to claim 5, further comprising:
acquiring an integral introduction text of the target house source;
the combining the explanation texts corresponding to each functional space according to the context semantic scene of each functional space to generate the explanation text of the virtual three-dimensional space of the target room source includes:
and combining the whole introduction text and the explanation text corresponding to each functional space according to the context semantic scene of each functional space to generate the explanation text of the virtual three-dimensional space of the target house source.
7. The house-source text message generating method of claim 1, further comprising:
and converting the explanation text of the virtual three-dimensional space of the target house source into an audio file, wherein the audio file comprises an audio file of a mandarin chinese edition and at least one preset dialect edition, and is used for playing when a user browses the virtual three-dimensional space.
8. The method for generating text information of house source according to claim 7, wherein the converting the explanation text of the virtual three-dimensional space of the target house source into an audio file comprises:
and converting the explanation text of the virtual three-dimensional space of the target room source into an audio file according to the preset pronunciation and/or word pronunciation of the polyphones.
9. A house source text information generating apparatus, comprising:
a text set acquisition module for acquiring an explanation text set of a target house source according to a functional space set contained in a virtual three-dimensional space of the target house source currently browsed by a user,
the explanation text set of the target house source comprises: a set of mandatory feature explanation texts, or a set of mandatory feature explanation texts and a set of optional feature explanation texts, wherein,
The optional feature explanation text set is a set formed by correspondingly filling feature data belonging to the optional function space in the function space set into the optional feature description template generated aiming at the optional function space and the explanation text corresponding to each optional function space,
the selectable feature explanation text set is a set formed by correspondingly filling feature data of selectable function spaces into selectable feature description templates generated aiming at the selectable function spaces respectively and acquiring explanation texts corresponding to each selectable function space when the feature data belonging to the selectable function spaces exist in the function space set;
and the text space association module is used for establishing a corresponding association relationship between each explanation text in the explanation text set and a function space set contained in the virtual three-dimensional space of the target house source so as to generate the explanation text of the virtual three-dimensional space of the target house source.
10. An electronic device, comprising: a processor, a memory and a computer program stored on the memory and executable on the processor, the computer program, when executed by the processor, implementing the house-source text information generating method according to any one of claims 1 to 8.
11. A computer-readable storage medium, characterized in that the computer-readable storage medium has stored thereon a computer program which, when being executed by a processor, implements the house source text information generating method according to any one of claims 1 to 8.
CN202010753676.3A 2020-07-30 2020-07-30 Method and device for generating house source text information, electronic equipment and storage medium Pending CN112052657A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010753676.3A CN112052657A (en) 2020-07-30 2020-07-30 Method and device for generating house source text information, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010753676.3A CN112052657A (en) 2020-07-30 2020-07-30 Method and device for generating house source text information, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN112052657A true CN112052657A (en) 2020-12-08

Family

ID=73601428

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010753676.3A Pending CN112052657A (en) 2020-07-30 2020-07-30 Method and device for generating house source text information, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112052657A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112399129A (en) * 2021-01-19 2021-02-23 中国平安人寿保险股份有限公司 Online video communication method and device based on small program and computer equipment
CN112818652A (en) * 2021-01-26 2021-05-18 深圳市房多多网络科技有限公司 Method, device and equipment for generating house source description text and computer storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104537006A (en) * 2014-12-17 2015-04-22 青岛文创科技有限公司 Novel house panorama display method
CN108829249A (en) * 2018-05-25 2018-11-16 链家网(北京)科技有限公司 Voice messaging playback method and device in virtual reality scenario
CN108922450A (en) * 2018-05-30 2018-11-30 链家网(北京)科技有限公司 The automatic control method for playing back of room content and device are said in house virtual three-dimensional space
CN109800360A (en) * 2018-12-24 2019-05-24 北京城市网邻信息技术有限公司 Cell queries method, apparatus, electronic equipment and storage medium
CN110110104A (en) * 2019-04-18 2019-08-09 贝壳技术有限公司 It is a kind of to automatically generate the method and device that house is explained in virtual three-dimensional space

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104537006A (en) * 2014-12-17 2015-04-22 青岛文创科技有限公司 Novel house panorama display method
CN108829249A (en) * 2018-05-25 2018-11-16 链家网(北京)科技有限公司 Voice messaging playback method and device in virtual reality scenario
CN108922450A (en) * 2018-05-30 2018-11-30 链家网(北京)科技有限公司 The automatic control method for playing back of room content and device are said in house virtual three-dimensional space
CN109800360A (en) * 2018-12-24 2019-05-24 北京城市网邻信息技术有限公司 Cell queries method, apparatus, electronic equipment and storage medium
CN110110104A (en) * 2019-04-18 2019-08-09 贝壳技术有限公司 It is a kind of to automatically generate the method and device that house is explained in virtual three-dimensional space

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112399129A (en) * 2021-01-19 2021-02-23 中国平安人寿保险股份有限公司 Online video communication method and device based on small program and computer equipment
CN112818652A (en) * 2021-01-26 2021-05-18 深圳市房多多网络科技有限公司 Method, device and equipment for generating house source description text and computer storage medium

Similar Documents

Publication Publication Date Title
CN108447486B (en) Voice translation method and device
Braun et al. Audio description with audio subtitling–an emergent modality of audiovisual localisation
JP2019049970A (en) Candidate response information generating method and apparatus
JP7220005B2 (en) Creating modular conversations using implicit routing
CN109754783B (en) Method and apparatus for determining boundaries of audio sentences
CN109840052B (en) Audio processing method and device, electronic equipment and storage medium
JP2020079921A (en) Voice interaction realizing method, device, computer device and program
CN112052657A (en) Method and device for generating house source text information, electronic equipment and storage medium
JP2019533212A (en) Audio broadcasting method and apparatus
US20130253926A1 (en) Speech dialogue system, terminal apparatus, and data center apparatus
US10839039B1 (en) Webpage accessibility compliance
KR102092426B1 (en) Building multi-language processes from existing single-language processes
CN110717337A (en) Information processing method, device, computing equipment and storage medium
CN110457673A (en) A kind of natural language is converted to the method and device of sign language
CN112799630A (en) Creating a cinematographed storytelling experience using network addressable devices
CN114023301A (en) Audio editing method, electronic device and storage medium
CN103544950A (en) Information processing apparatus, information processing method, display control apparatus, and display control method
CN114416049A (en) Configuration method and device of service interface combining RPA and AI
CN111128121B (en) Voice information generation method and device, electronic equipment and storage medium
JP4881903B2 (en) Script creation support method and program for natural language dialogue agent
CN113807094A (en) Entity identification method, device and computer readable storage medium
CN115440185A (en) Speech synthesis method and related device
CN111782868A (en) Audio processing method, device, equipment and medium
CN114822492B (en) Speech synthesis method and device, electronic equipment and computer readable storage medium
CN109994000B (en) Reading accompanying method, electronic equipment and computer storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination