16 lines
1.2 KiB
HTML
16 lines
1.2 KiB
HTML
|
|
<html>
|
|
<head>
|
|
<meta http-equiv="content-type"
|
|
content="text/html; charset=ISO-8859-1">
|
|
<title></title>
|
|
</head>
|
|
<body>
|
|
<center>
|
|
<h2> Text Formatter User Guide for Narrative Products</h2>
|
|
<h3>129. Narrative Phrases - Time Descriptor moderation</h3>
|
|
<hr>
|
|
<a href=Slide128.html>Previous Slide</a> <a href=Slide130.html>Next Slide</a> <br><img SRC=Slide129.JPG border=1><br></center>
|
|
<p><p><big>Here is the algorithm used for time description. In general, instead of modifying every sub-phrase, we modify every other one. We just need to decide whether to start with even or odd sub-phrases. This method does not add the actual words; it simply flags the sub-phrase for subsequent processing (by "assembleSubPhrases"). As you can see, this algorithm is rather complicated since we have to account for null phrases that could end up as the empty string and should not be modified. Other algorithms could be substituted, but they would also have to take this into consideration. The "TimeDescriptor" module contains the configurable "timePeriod_desciptor_dict" which provides the wording for time desciptors such as "in the morning", "in the afternoon", etc. <br><br><br></big>
|
|
</body>
|
|
</html>
|