<p>There are many sequence to sequence (seq2seq) models and end to end models, like text to sql. I was wondering are there any text to json deep learning models?</p>
<p>For example:</p>
<p>Text</p>
<pre><code>&quot;Switch on the computer&quot;. 
</code></pre>
<p>JSON:</p>
<pre><code>{&quot;actions&quot;:[&quot;switch on&quot;], &quot;object&quot;:&quot;computer&quot;}
</code></pre>
<p>Another Example:</p>
<p>Text:</p>
<pre><code>&quot;Lower the heater temperature to 25 degrees and before that play music for one hour&quot;.
</code></pre>
<p>JSON:</p>
<pre><code> {&quot;actions&quot;: [&quot;lower the heater temperature&quot;,&quot;play the music&quot;],&quot;order&quot;:[1,0]}
</code></pre>
<p>Note that JSON has different or some additional elements depending on the text. This is different from regular seq2seq models. Any suggestions on which models to use? Thank you!!</p>

CC BY-SA 4.0
2022-10-10T12:48:15.633Z
You may be asking for a [semantic parsing model](https://en.m.wikipedia.org/wiki/Semantic_parsing)
Jacob Valdez
CC BY-SA 4.0
2022-10-11T07:01:17.277Z
Thank you, it looks something close to what I've been looking for.
tired and bored dev
CC BY-SA 4.0
2024-01-17T07:18:50.347Z
@tiredandboreddev did you ever find anything? Also looking for something similar.
jackofallcode
CC BY-SA 4.0
2024-01-19T06:07:39.640Z
For my purpose, I could find seq2seq models work to some extent...
tired and bored dev
<deep-learning><natural-language-processing><seq2seq>
Any models for text to json
tired and bored dev
# Any models for text to json

(Asked by: username_0 on 2022-10-10)

There are many sequence to sequence (seq2seq) models and end to end models, like text to sql. I was wondering are there any text to json deep learning models?
For example:
Text
"Switch on the computer". 

JSON:
{"actions":["switch on"], "object":"computer"}

Another Example:
Text:
"Lower the heater temperature to 25 degrees and before that play music for one hour".

JSON:
 {"actions": ["lower the heater temperature","play the music"],"order":[1,0]}

Note that JSON has different or some additional elements depending on the text. This is different from regular seq2seq models. Any suggestions on which models to use? Thank you!!

**Tags:** deep-learning, natural-language-processing, seq2seq

> **Comments:**
> **username_1**: You may be asking for a [semantic parsing model](https://en.m.wikipedia.org/wiki/Semantic_parsing)  
> **username_0**: Thank you, it looks something close to what I've been looking for.  
> **username_2**: @tiredandboreddev did you ever find anything? Also looking for something similar.  
> **username_0**: For my purpose, I could find seq2seq models work to some extent...  

---

## 0 answers

