Questions tagged [nlg]

Natural Language Generation (NLG) is a field dealing with automatic generation of natural languages.

Natural Language Generation (NLG) is used in systems which communicate in a natural language, such as a program to automatically build a weather report based on weather data.

NLG is often thought as the reverse of sentence parsing in Natural Language Processing (NLP), but it is not, since sentence parsing only deals with the syntactic representation of a language, while NLG deals much deeper than that, touching the semantics (meaning) of language1.

Although similar in nature, NLG is significantly more difficult than NLP, due to the inherent expressiveness of natural language. NLG involves making many choices, e.g. which content to include, what order to say it in, what words and syntactic constructions to use2.

See also the Wikipedia page on Natural Language Generation: http://en.wikipedia.org/wiki/Natural_language_generation

Linked resources:

  1. http://web.science.mq.edu.au/%7Erdale/teaching/esslli/part01.pdf
  2. http://homepages.abdn.ac.uk/k.vdeemter/pages/teaching/NLP/lectures/lec19.prn.pdf
52 questions
0
votes
1 answer

How to get subject pronoun with SimpleNLG?

val lexicon: Lexicon = Lexicon.getDefaultLexicon() val realised: Realiser = Realiser(lexicon) val word: WordElement = lexicon.getWord("I", LexicalCategory.PRONOUN) val inflected = InflectedWordElement(word) inflected.setFeature(Feature.PERSON,…
Kokoro
  • 3
  • 4
0
votes
1 answer

How to learn semantic alignment in data-to-text NLG by unsupervised method?

I am a newbie in data-to-text NLG. I am researching the semantic alignment in data-to-text,the task definition is to label the segment of the reference text about the data tale with the key of the data table, as shown in the image…
龚金涛
  • 21
  • 3
0
votes
1 answer

How to pre-train the unified language model (UniLm)

I'm working on a non-English NLP project and for that, I need to re-train the UniLm on the bert-base-multilingual-cased, but they did not specify how to in their GitHub repository. Any help is appreciated! This is the link for the GitHub…
0
votes
1 answer

Natural Language Generation usage with Microsoft Bot Framework

I would need help to understand if any use case is developed using MS bot framework with any NLG capabilities. I understand LUIS has NLP and NLU but not NLG. Either Azure Chatbot is developed with any NLG such as Turing-NLG?
0
votes
1 answer

How can i generate narrative Tableau dashboard?

I have a Tableau BI dashboard on which i want to generate Narrative Insights. My Data does not have relevant text for generating new sentences. How can i go about it? I am quite comfortable in python but I am unable to make out how to go about it?
0
votes
1 answer

Can't apply method addComplement on an NLGElement

I see from this documentation that we can apply the method addComplement on an NLGElement, but when I try this code: Lexicon lexicon= new XMLLexicon(); NLGFactory factory = new NLGFactory(lexicon); NLGElement s1 = factory.createSentence("my dog is…
mee
  • 688
  • 8
  • 18
0
votes
1 answer

Achieve creativity in natural language generation?

Is it possible for an approach based on supervised learning from a fixed dataset to achieve creativity in NLG?
0
votes
2 answers

IndexError: list index out of range [ summarize_text.append(" ".join(ranked_sentence[i][1])) ]

I have written some python code to generate an extractive summary of a txt file. I am getting a IndexError: list index out of range error for this line of my code ; for i in range(top_n): summarize_text.append("…
Surja Ray
  • 1
  • 1
0
votes
2 answers

How to control the author’s point of view in natural language generation models?

I am new to Natural Language Generation and I am currently in the experimentation phase. The motivating use-case is to generate one-sentence captions for images, but my question/problem is not unique to my current NLG use-case alone. The first…
0
votes
1 answer

Natural Language Generation (NLG) to describe financial balance sheet

Is there any working Natural Language Generation (NLG) system which can describe the numerical data in a financial balance sheet. If so, please provide the code/resource. I tried but couldn't find any working system.
0
votes
1 answer

How can I generate some phrases from a knowledge base after DCG?

I have defined my grammar in prolog as DCG (Definite Clause Grammar). Now I want to generate some phrases according with the facts present in my knowledge base. For example, if I have likes(mark, julia). I want to generate the sentence Mark likes…
0
votes
0 answers

forking Pug vs Pug plugins

I'm writing a natural language generator (NLG) system based on pug - it's called FreeNLG. I had to add new syntaxic elements to Pug, for instance to declare synonyms: span synz syn | some text syn | another text (which…
0
votes
1 answer

Natural language generation for time objects

Is there a library (preferably in JavaScript but not required) that takes an array of datetime objects and perform natural language generation and produce a human readable sentence? e.g. ["monday","tuesday","wednesday","thrusday","friday"] // "on…
Derek Li
  • 3,089
  • 2
  • 25
  • 38
0
votes
1 answer

Generate valid English sentence structure for a given word length

Does a library exist, preferably JavaScript (by no means a hard requirement), that will output an English sentence structure for a given length? For example: > sentenceGenerator({ length: 4 }) < DETERMINER NOUN VERB NOUN > sentenceGenerator({…
Taylor Glaeser
  • 1,338
  • 12
  • 18
0
votes
1 answer

Stanford Parser: can dependencies be converted to a parse tree?

Is there a way to go from dependencies: nmod:poss(dog-2, My-1) nsubj(likes-4, dog-2) advmod(likes-4, also-3) root(ROOT-0, likes-4) xcomp(likes-4, eating-5) dobj(eating-5, sausage-6) to the corresponding parse tree? (ROOT (S (NP (PRP$ My) (NN…