Skip links
Main content

Building Natural Language Generation Systems - Ehud Reiter and Robert Dale

maandag 25 april 2011 10:41

I want to write an agent that I can talk to and that can talk back to me. The talking back parts exists of turning some semantic representation (in predicate logic?) into a sentence that a human can read. Somewhere in the middle should be a syntax tree, an hierarchical representation of the sentence. That's all I knew. So there was a large gap between the stack of propositions and the surface level representation. And I had no clue as to where to start.

So I bought this book because I got the impression from Amazon reviews that it is the best book on NLG (natural language generation) available, even though it is ten years old. And I am glad I did. Because the book takes you through the jungle that is called Natural Language Processing and even tells you how to builld your house in it. I am calling it a jungle because there is way too much information available in this field. And the information does not seem to form a coherent body. There are many conceptual views and they all cover but part of the field. And I have no intention, nor the time, to understand everything that has been produced.

The authors of the book (BNLGS) understand this and they really do a great job of making this as simple as possible. The book is about document generation, not discourse planning (having a conversation with someone), and the main flow of document generation is as follows:

Document Planning -> Microplanning -> Surface Realization

Document Planning takes as input a communicative goal and delivers as output a document plan. A communicative goal is a simple statement of what the document is trying to achieve. A document plan is a tree whose branches are rhetorical relations (or discourse relations) and whose leaves are messages. The document planner creates the structure of the text as a whole. There is a predefined set of messages that can be produced. What these messages look like, is completely up to the application. There are no standards.

Microplanning takes this document plan as input and produces proto-phrase specifications. It does this by applying templates to the messages and then applying lexicalization, aggregation, and referring expression generation. A proto-phrase specification is not just a syntactic structure, it contains semantic information as well.

Surface Realization takes these proto-phrase specifications as input and produces a sentence as output. Existing surfice realizers take several types of proto-phrase specifications as input, but mainly these: lexicalized case frames, and abstract syntactic structures.

The only drawback of the book is that it completely skips the implementation of the surface realizer. The reason for this is that the authors claim that it is not smart to build one from scratch, because several advanced one exist, notably KPML, SURGE, and RealPro. I have to disagree with them, because the realizers have a "non-trivial learning curve" and require some conceptual preconceptions.

Natural Language Generation applications often use very specific types of grammars. The important ones are Systemic Functional Grammar (KPML, SURGE) and Functional Unification Grammar (RealPro). These are different from the ones oft used for Natural Language Understanding, because NLG is about choice management and NLU is about hypotheses management. There are many ways to express the same meaning and these grammars deal with the choices to be made better than, say, HPSG.

So what exactly was missing in my idea of language generation before I read this book? Well mainly that you can't go for a system that tries to generate just any sentence. Choose your domain and create some domain specific rules and structures. This is what keeps in manageable. And keep semantics involved as long as possible. After all, you are trying to get your meaning across.

In conclusion: I love this book. It gave me exactly what I needed, some structure in this complicated field, and it deals both with theory and its practical application. And very accessible too.

Labels
books
nlp

« Terug

Reacties op 'Building Natural Language Generation Systems - Ehud Reiter and Robert Dale'

1 2 3 Laatste pagina
oakley sunglasses
Geplaatst op: 26-06-2013 15:42 Quote
Hello, i think that i saw you visited my website thus i came to "return the favor".I am attempting to find things to improve my web site!I suppose its ok to use some of your ideas!!<a href="http://www.razzlewood.com/oakleysunglasses.html">cheap oakley sunglasses</a>} oakley sunglasses http://www.razzlewood.com/oakleysunglasses.html
cheap oakley sunglasses
Geplaatst op: 26-06-2013 15:42 Quote
I need to to thank you for this good read!! I definitely enjoyed every little bit of it. I've got you book-marked to look at new stuff you post.| cheap oakley sunglasses http://www.razzlewood.com/oakleysunglasses.html
toms shoes
Geplaatst op: 02-07-2013 06:31 Quote
I have been surfing on-line greater than three hours as of late, yet I by no means discovered any interesting article like yours. It is lovely worth enough for me. In my view, if all web owners and bloggers made good content material as you did, the net will be much more helpful than ever before.| toms shoes
toms outlet
Geplaatst op: 02-07-2013 06:32 Quote
Hi there, I check your new stuff regularly. Your humoristic style is awesome, keep it up!| toms outlet
Jonathan
Geplaatst op: 09-07-2013 13:38 Quote
This post is shared at: Sustainable Ways, Whole Food Wednesday, Healthy 2Day, Allergy Free Wednesday, Real Food Wednesday, These Chicks Cooked, Mommy Club, Creative Juice Thursday, Simple Lives Thursday, Pennywise Platter, Fresh Bites Friday, Freaky Friday, Fight Back Friday, Seasonal Celebration, Sunday School, Sugar-Free Sunday, Monday Mania, Barnyard Hop
toms outlet
Geplaatst op: 10-07-2013 08:54 Quote
My relatives all the time say that I am wasting my time here at web, however I know I am getting experience every day by reading thes nice content.| toms outlet
Raquel
Geplaatst op: 11-07-2013 06:56 Quote
I fail to see why people will netage your post. It is completely valid, but you are missing one point. The pellet fired in the video is most likely the standard metal pellet. I do realise many BB guns fire metal pellets, but as far as I know people tend not to use metal pellets in BB wars. (Correct me if I am wrong there).Furthermore, paintball guns fire at a much faster rate to counter the momentum lost compared to a smaller pellet.
Raquel
Geplaatst op: 11-07-2013 06:56 Quote
I fail to see why people will netage your post. It is completely valid, but you are missing one point. The pellet fired in the video is most likely the standard metal pellet. I do realise many BB guns fire metal pellets, but as far as I know people tend not to use metal pellets in BB wars. (Correct me if I am wrong there).Furthermore, paintball guns fire at a much faster rate to counter the momentum lost compared to a smaller pellet.
Alexandr
Geplaatst op: 12-07-2013 23:11 Quote
Fishmate P7000 I ordered the first unit back in the <a href="http://nrysdmttb.com">midlde</a> of July from one of my pond suppliers. I already have had a smaller P-21 for several years, which has been trouble free, but only holds enough food for about 3 days. I thought the P-7000 would be the ticket for my up coming vacation in September, since it has a capacity for at least 4 5 weeks. More than enough for a two week getaway.The unit appears to be well made.I noticed programming of the 1st unit somewhat difficult with the key entry. Holding a button down for a fraction of a second too long resulted in skipping to the next phase, or freezing up. In order to correct, you have to wait a full minute or more to allow the display to return to clock mode. Once it was programmed for both an early morning feeding, as well as an evening feeding, I monitored it every day. I wanted to make sure of proper function with plenty of time before vacation, just in case.The unit COMPLETELY SKIPPED the PM feedings from the beginning. After about a week it started intermittently feeding in the PM, and intermittently skipping the AM feeding. I am an electronics geek, and know that the problem is within the main board, probably a bad micro chip. I called the company, and tried a few programming work-a-rounds to no avail to of all of the issues. I then shipped it back at a cost of about $20 for a replacement. I received the replacement in about 10 days after shipping UPS. They had to receive the first one before sending the 2nd one. I enclosed a detailed letter of exactly what the issues were, and requested a tested unit, since time was drawing near for vacation, and I wanted time to monitor it.The 2nd unit was also difficult to program. It started out feeding in the AM and PM. After 4 days, there were a few missed PM feedings. After another 2 days, the display would lock up, and feeding indicator pointer was frozen for about 3 days. It then started working fine for about 2 weeks. As Murphy's Law dictates, the unit totally froze the morning of my departure. I had to have someone feed my fish. The indicators show that feedings are being made, but the motor will not activate, not even in a demand mode for extra feeding. I reported the initial problems the day after receiving the unit. Their customer service rep said she would call me back, I am still waiting. I am now on vacation writing this review. I don't know what they will do once I contact them upon my return. My feeling is that they have a whole batch of defective chips in their boards. The units are manufactured for them elsewhere, so I don't know what the outcome may be. My advice is to avoid the product until they iron out the problems. BTW in the several telephone conversations that I had with customer service, they mentioned that the unit was new in the marketplace, as if it were an excuse. Don't they test things any more ?????? I am a businessman for 42 years, and I understand manufacturing. Even when you make a change, you test the changes (at least I do).
Alexandr
Geplaatst op: 12-07-2013 23:11 Quote
Fishmate P7000 I ordered the first unit back in the <a href="http://nrysdmttb.com">midlde</a> of July from one of my pond suppliers. I already have had a smaller P-21 for several years, which has been trouble free, but only holds enough food for about 3 days. I thought the P-7000 would be the ticket for my up coming vacation in September, since it has a capacity for at least 4 5 weeks. More than enough for a two week getaway.The unit appears to be well made.I noticed programming of the 1st unit somewhat difficult with the key entry. Holding a button down for a fraction of a second too long resulted in skipping to the next phase, or freezing up. In order to correct, you have to wait a full minute or more to allow the display to return to clock mode. Once it was programmed for both an early morning feeding, as well as an evening feeding, I monitored it every day. I wanted to make sure of proper function with plenty of time before vacation, just in case.The unit COMPLETELY SKIPPED the PM feedings from the beginning. After about a week it started intermittently feeding in the PM, and intermittently skipping the AM feeding. I am an electronics geek, and know that the problem is within the main board, probably a bad micro chip. I called the company, and tried a few programming work-a-rounds to no avail to of all of the issues. I then shipped it back at a cost of about $20 for a replacement. I received the replacement in about 10 days after shipping UPS. They had to receive the first one before sending the 2nd one. I enclosed a detailed letter of exactly what the issues were, and requested a tested unit, since time was drawing near for vacation, and I wanted time to monitor it.The 2nd unit was also difficult to program. It started out feeding in the AM and PM. After 4 days, there were a few missed PM feedings. After another 2 days, the display would lock up, and feeding indicator pointer was frozen for about 3 days. It then started working fine for about 2 weeks. As Murphy's Law dictates, the unit totally froze the morning of my departure. I had to have someone feed my fish. The indicators show that feedings are being made, but the motor will not activate, not even in a demand mode for extra feeding. I reported the initial problems the day after receiving the unit. Their customer service rep said she would call me back, I am still waiting. I am now on vacation writing this review. I don't know what they will do once I contact them upon my return. My feeling is that they have a whole batch of defective chips in their boards. The units are manufactured for them elsewhere, so I don't know what the outcome may be. My advice is to avoid the product until they iron out the problems. BTW in the several telephone conversations that I had with customer service, they mentioned that the unit was new in the marketplace, as if it were an excuse. Don't they test things any more ?????? I am a businessman for 42 years, and I understand manufacturing. Even when you make a change, you test the changes (at least I do).
Alexandr
Geplaatst op: 12-07-2013 23:11 Quote
Fishmate P7000 I ordered the first unit back in the <a href="http://nrysdmttb.com">midlde</a> of July from one of my pond suppliers. I already have had a smaller P-21 for several years, which has been trouble free, but only holds enough food for about 3 days. I thought the P-7000 would be the ticket for my up coming vacation in September, since it has a capacity for at least 4 5 weeks. More than enough for a two week getaway.The unit appears to be well made.I noticed programming of the 1st unit somewhat difficult with the key entry. Holding a button down for a fraction of a second too long resulted in skipping to the next phase, or freezing up. In order to correct, you have to wait a full minute or more to allow the display to return to clock mode. Once it was programmed for both an early morning feeding, as well as an evening feeding, I monitored it every day. I wanted to make sure of proper function with plenty of time before vacation, just in case.The unit COMPLETELY SKIPPED the PM feedings from the beginning. After about a week it started intermittently feeding in the PM, and intermittently skipping the AM feeding. I am an electronics geek, and know that the problem is within the main board, probably a bad micro chip. I called the company, and tried a few programming work-a-rounds to no avail to of all of the issues. I then shipped it back at a cost of about $20 for a replacement. I received the replacement in about 10 days after shipping UPS. They had to receive the first one before sending the 2nd one. I enclosed a detailed letter of exactly what the issues were, and requested a tested unit, since time was drawing near for vacation, and I wanted time to monitor it.The 2nd unit was also difficult to program. It started out feeding in the AM and PM. After 4 days, there were a few missed PM feedings. After another 2 days, the display would lock up, and feeding indicator pointer was frozen for about 3 days. It then started working fine for about 2 weeks. As Murphy's Law dictates, the unit totally froze the morning of my departure. I had to have someone feed my fish. The indicators show that feedings are being made, but the motor will not activate, not even in a demand mode for extra feeding. I reported the initial problems the day after receiving the unit. Their customer service rep said she would call me back, I am still waiting. I am now on vacation writing this review. I don't know what they will do once I contact them upon my return. My feeling is that they have a whole batch of defective chips in their boards. The units are manufactured for them elsewhere, so I don't know what the outcome may be. My advice is to avoid the product until they iron out the problems. BTW in the several telephone conversations that I had with customer service, they mentioned that the unit was new in the marketplace, as if it were an excuse. Don't they test things any more ?????? I am a businessman for 42 years, and I understand manufacturing. Even when you make a change, you test the changes (at least I do).
Emmanuel
Geplaatst op: 14-07-2013 14:48 Quote
Ppl like you get all the brnasi. I just get to say thanks for he answer. http://dgwadbhv.com ihdmencccax [link=http://rhdpxyw.com]rhdpxyw[/link]
Emmanuel
Geplaatst op: 14-07-2013 14:48 Quote
Ppl like you get all the brnasi. I just get to say thanks for he answer. http://dgwadbhv.com ihdmencccax [link=http://rhdpxyw.com]rhdpxyw[/link]
Emmanuel
Geplaatst op: 14-07-2013 14:48 Quote
Ppl like you get all the brnasi. I just get to say thanks for he answer. http://dgwadbhv.com ihdmencccax [link=http://rhdpxyw.com]rhdpxyw[/link]
Cheyanna
Geplaatst op: 29-08-2013 10:59 Quote
Maryellen
Geplaatst op: 03-09-2013 15:29 Quote
Ethanael
Geplaatst op: 09-09-2013 06:58 Quote
Florence
Geplaatst op: 10-09-2013 07:37 Quote
ugg boots uk
Geplaatst op: 11-09-2013 20:21 Quote
9999 Throughout the past couple of weeks I've been questioned a large number of days why I selected tuberculosis because the subject for my TED wish.
ugg boots uk
Luckie
Geplaatst op: 14-09-2013 08:23 Quote
louis vuitton outlet
Geplaatst op: 17-09-2013 19:16 Quote
999 Keep in mind Maks Erin and Maks Brandy and Maks Everybody under the sun Else?. The new York Periods has thrown us yet another curve this week.
louis vuitton outlet
babyliss pro perfect curl
Geplaatst op: 17-09-2013 19:50 Quote
999 Keep in mind Maks Erin and Maks Brandy and Maks Everyone Else?. The brand new York Times has thrown us a further curve this week.
babyliss pro perfect curl
cheap jerseys
Geplaatst op: 24-09-2013 20:25 Quote
999 Or it could signify bankrupting the crew long term to get a shot within the playoffs this 12 months.. Fast Drive normally requires advantage of an SSD for a lot quicker boot velocity.
cheap jerseys
Charleigh
Geplaatst op: 26-09-2013 15:54 Quote
Tina
Geplaatst op: 26-09-2013 16:49 Quote
1 2 3 Laatste pagina
Nieuw bericht