public string Fix(string _transcript, string workfolder)
        {
            /* First we split the transcript into three parts: meeting header, list of officers' name and the text of meeting.
             * Currently we don't use the information in the meeting header or the list of officers' names.
             * That's because we already have the meeting information encoded into the file name -- and
             * the AddTags code later gets its list of speakers at the meeting from the transcript text itself.
             * THerefore, we only return the transcipt text from this method and discard the meeting header and officer names.
             * This will likely change in the future. We should at least save the names for officer attendence records.
             */

            // Extract the meeting header
            meetingInfo = cf.LinesFromAndUpto(_transcript, "    COUNCIL OF THE CITY OF PHILADELPHIA", "PRESENT:\n");
            cf.RemoveSpacesAtStartOfLine(ref meetingInfo);

            // Extract the officers' names
            officersNames = cf.LinesBetween(_transcript, "PRESENT:\n", "    - - -\n");
            cf.RemoveSpacesAtStartOfLine(ref officersNames);

            // Extract the text of what was said
            transcriptText = cf.LinesBetween(_transcript, "    - - -\n", "Page 1\nA\n");

            // LogProgress will store the meeting header and officer names sections,
            // so that it can write those to the trace files for each step of the conversion.
            // On calls to lp.Log, we will only pass the new transcriptText.

            lp.Initialize(meetingInfo, officersNames, workfolder);
            lp.Log("Split heading,speakers,text", transcriptText);

            // Return the meeting text.
            return(FixTextOfTranscript());
        }
        public string Fix(string _transcript, string workfolder)
        {
            lp.Initialize(meetingInfo, officersNames, workfolder);
            lp.Log("Start", _transcript);

            //

            return(transcriptText);
        }
        public string Fix(string _transcript)
        {
            // Delete the date of the meeting that appears on each page
            //            DeleteDateLine(ref transcript);


            // Get the meeting information
            meetingInfo = cf.LinesFromAndUpto(_transcript, "    COUNCIL OF THE CITY OF PHILADELPHIA", "PRESENT:\n");
            cf.RemoveSpacesAtStartOfLine(ref meetingInfo);

            // Get the officers' names
            officersNames = cf.LinesBetween(_transcript, "PRESENT:\n", "    - - -\n");
            cf.RemoveSpacesAtStartOfLine(ref officersNames);

            // Get the transcript of what was said
            transcriptText = cf.LinesBetween(_transcript, "    - - -\n", "Page 1\nA\n");

            lp.SetParts(meetingInfo, officersNames);

            lp.Log("Split heading,speakers,text", transcriptText);

            return(FixTextOfTranscript());
        }
예제 #4
0
        public string Fix(string _transcript)
        {
            lp.Log("Start", _transcript);

            return(_transcript);
        }