From svetlana at edam.speech.cs.cmu.edu Tue May 1 23:21:58 2007 From: svetlana at edam.speech.cs.cmu.edu (svetlana@edam.speech.cs.cmu.edu) Date: Tue, 1 May 2007 23:21:58 -0400 Subject: [RavenclawDev 266] [28] Agents/JavaTTY: cleaned up the code more Message-ID: <200705020321.l423LweZ020409@edam.speech.cs.cmu.edu> An HTML attachment was scrubbed... URL: http://mailman.srv.cs.cmu.edu/pipermail/ravenclaw-developers/attachments/20070501/7a56f6d1/attachment.html -------------- next part -------------- Modified: Agents/JavaTTY/nbproject/.cvsignore =================================================================== --- Agents/JavaTTY/nbproject/.cvsignore 2007-04-25 19:54:23 UTC (rev 27) +++ Agents/JavaTTY/nbproject/.cvsignore 2007-05-02 03:21:57 UTC (rev 28) @@ -1,2 +1,3 @@ vssver.scc +.svn private Modified: Agents/JavaTTY/nbproject/private/private.properties =================================================================== --- Agents/JavaTTY/nbproject/private/private.properties 2007-04-25 19:54:23 UTC (rev 27) +++ Agents/JavaTTY/nbproject/private/private.properties 2007-05-02 03:21:57 UTC (rev 28) @@ -1,3 +1,5 @@ +application.args=-port 11002 +file.reference.CalendarJavaUtils.jar=C:\\calendar-from28\\RavenCalendar\\Libraries\\CalendarJavaUtils\\dist\\CalendarJavaUtils.jar javac.debug=true javadoc.preview=true user.properties.file=C:\\Documents and Settings\\sveta\\.netbeans\\5.5\\build.properties Modified: Agents/JavaTTY/nbproject/project.properties =================================================================== --- Agents/JavaTTY/nbproject/project.properties 2007-04-25 19:54:23 UTC (rev 27) +++ Agents/JavaTTY/nbproject/project.properties 2007-05-02 03:21:57 UTC (rev 28) @@ -17,6 +17,7 @@ dist.javadoc.dir=${dist.dir}/javadoc file.reference.bsh-core-2.0b4.jar=bsh-core-2.0b4.jar file.reference.bsh-util-2.0b4.jar=bsh-util-2.0b4.jar +file.reference.CalendarJavaUtils.jar=../../../../../../../../calendar-from28/RavenCalendar/Libraries/CalendarJavaUtils/dist/CalendarJavaUtils.jar file.reference.galaxy.jar=galaxy.jar file.reference.jiu.jar=jiu.jar file.reference.PenDecoder-src=src @@ -25,7 +26,8 @@ ${file.reference.jiu.jar}:\ ${file.reference.bsh-util-2.0b4.jar}:\ ${file.reference.galaxy.jar}:\ - ${file.reference.bsh-core-2.0b4.jar} + ${file.reference.bsh-core-2.0b4.jar}:\ + ${file.reference.CalendarJavaUtils.jar} # Space-separated list of extra javac options javac.compilerargs=-Xlint javac.deprecation=false Modified: Agents/JavaTTY/src/edu/cmu/ravenclaw/javatty/DecoderInterpreter.java =================================================================== --- Agents/JavaTTY/src/edu/cmu/ravenclaw/javatty/DecoderInterpreter.java 2007-04-25 19:54:23 UTC (rev 27) +++ Agents/JavaTTY/src/edu/cmu/ravenclaw/javatty/DecoderInterpreter.java 2007-05-02 03:21:57 UTC (rev 28) @@ -20,15 +20,17 @@ protected JConsole jconsole; protected JConsole jconsoleWrite; + protected JConsole jconsoleCanSay; protected Reader reader; protected PrintStream outStream; protected PrintStream errStream; protected DrawingPad pad; /** Creates a new instance of DecoderInterpreter */ - public DecoderInterpreter(JConsole jconsole, JConsole jconsoleWrite, DrawingPad pad) { + public DecoderInterpreter(JConsole jconsole, JConsole jconsoleWrite, JConsole jconsoleCanSay, DrawingPad pad) { this.jconsole = jconsole; this.jconsoleWrite = jconsoleWrite; + this.jconsoleCanSay = jconsoleCanSay; this.pad = pad; reader = jconsoleWrite.getIn(); outStream = jconsole.getOut(); @@ -65,6 +67,12 @@ jconsole.println(); } + public void print_cansay(String bot, String text) { + + jconsoleCanSay.print(bot + ": " + text, java.awt.Color.BLACK); + jconsoleCanSay.println(); + } + public void print_human(String source, String confidence, String utterance) { jconsole.print("U(" + source + ":" + confidence + "): " + utterance, java.awt.Color.GREEN); jconsole.println(); Modified: Agents/JavaTTY/src/edu/cmu/ravenclaw/javatty/DrawingPad.java =================================================================== --- Agents/JavaTTY/src/edu/cmu/ravenclaw/javatty/DrawingPad.java 2007-04-25 19:54:23 UTC (rev 27) +++ Agents/JavaTTY/src/edu/cmu/ravenclaw/javatty/DrawingPad.java 2007-05-02 03:21:57 UTC (rev 28) @@ -23,9 +23,14 @@ JConsole consolePrint = new JConsole(); JConsole consoleWrite = new JConsole(); + JConsole consoleCanSay = new JConsole(); protected static int width = 1200; protected static int height = 800; + + protected static int screenHeight = 0; + protected static int screenWidth = 0; + // protected JComponent toolbar; @@ -34,7 +39,10 @@ public DrawingPad(String title) { super(title); - + + getScreenSize(); + setResizable(true); + // calling factory method getContentPane().setLayout(new BorderLayout()); menuBar = createMenuBar(); @@ -42,6 +50,7 @@ startSessionButton = new JButton("Start Session"); startSessionButton.addActionListener(new ButtonPressed()); + startSessionButton.setPreferredSize(new Dimension(screenWidth, (int)((0.1)*screenHeight))); getContentPane().add(startSessionButton, BorderLayout.CENTER); addWindowListener(new WindowAdapter() { @@ -51,31 +60,59 @@ } } }); + JPanel lowerContainer = new JPanel(new BorderLayout()); //lowerContainer.setPreferredSize(new Dimension(1024, 260)); + + //add console to lowerContainer + consoleCanSay.setPreferredSize(new Dimension(screenWidth, (int)((0.1)*screenHeight))); + consoleCanSay.getViewport().getView().setBackground(Color.gray); + consoleCanSay.getViewport().getView().setForeground(Color.black); + consoleCanSay.setFont(new Font("Arial", Font.BOLD, 14)); + consoleCanSay.setVerticalScrollBarPolicy(consoleCanSay.VERTICAL_SCROLLBAR_NEVER); + lowerContainer.add(consoleCanSay, BorderLayout.SOUTH); + //add console to topContainer - consolePrint.setPreferredSize(new Dimension(1000, 300)); + consolePrint.setPreferredSize(new Dimension(screenWidth, (int)((0.35)*screenHeight))); consolePrint.getViewport().getView().setBackground(Color.white); consolePrint.getViewport().getView().setForeground(Color.black); consolePrint.setFont(new Font("Arial", Font.BOLD, 14)); lowerContainer.add(consolePrint, BorderLayout.NORTH); + + //add console to lowerContainer - consoleWrite.setPreferredSize(new Dimension(1000, 350)); + consoleWrite.setPreferredSize(new Dimension(screenWidth, (int)((0.35)*screenHeight))); consoleWrite.getViewport().getView().setBackground(Color.white); consoleWrite.getViewport().getView().setForeground(Color.black); consoleWrite.setFont(new Font("Arial", Font.BOLD, 14)); - lowerContainer.add(consoleWrite, BorderLayout.SOUTH); + lowerContainer.add(consoleWrite, BorderLayout.CENTER); + - interpreter = new DecoderInterpreter(consolePrint, consoleWrite, this); + + interpreter = new DecoderInterpreter(consolePrint, consoleWrite, consoleCanSay, this); interpreter.start(); //add lowerContainer to this getContentPane().add(lowerContainer, BorderLayout.SOUTH); } + + protected void getScreenSize() + { + GraphicsEnvironment ge = GraphicsEnvironment.getLocalGraphicsEnvironment(); + GraphicsDevice[] gs = ge.getScreenDevices(); + + // Get size of each screen + //for (int i=0; i i = servers.listIterator(); while(i.hasNext()) { i.next().saySelectBot(name); } } - + */ /*public void selectBot(String name) { drawingCanvas.selectBot(name); }*/ Modified: Agents/JavaTTY/src/edu/cmu/ravenclaw/javatty/JavaTTYServer.java =================================================================== --- Agents/JavaTTY/src/edu/cmu/ravenclaw/javatty/JavaTTYServer.java 2007-04-25 19:54:23 UTC (rev 27) +++ Agents/JavaTTY/src/edu/cmu/ravenclaw/javatty/JavaTTYServer.java 2007-05-02 03:21:57 UTC (rev 28) @@ -7,6 +7,8 @@ package edu.cmu.ravenclaw.javatty; +import edu.sunysb.CalendarJavaUtils.*; + import com.sun.image.codec.jpeg.JPEGCodec; import com.sun.image.codec.jpeg.JPEGImageDecoder; import java.io.*; @@ -32,7 +34,7 @@ } frame.addServer(this); } - + /* public void serverOpReinitialize(GFrame f) { String botName = (String)f.getProperty(":user_id"); } @@ -87,7 +89,7 @@ GVector y = f.getList(":y"); return (GFrame) null; } - + */ public GFrame serverOpSpeak(GFrame f) { String utt = (String)f.getProperty(":tty-phrase");//(":speaktext"); if(utt==null) @@ -112,6 +114,7 @@ String id = "CALENDAR";//(String)f.getProperty(":robot_name"); //frame.getInterpreter().print_bot(id.replaceFirst("-.*", ""), rendering); frame.getInterpreter().print_bot(id, rendering); + } return (GFrame) null; } @@ -137,7 +140,7 @@ } return (GFrame) null; } - + /* public GFrame serverOpSelectBot(GFrame f) { System.err.println("got select_bot: " + f.toString()); String inframe = (String)f.getProperty(":inframe"); @@ -161,7 +164,52 @@ rname.put("[RobotName]", name); sayToBot("Commands", "[HumanReportCommand]", rname); } - + */ + + /** + * this is calendar application specific. Displays the utterances + * that can be understood dependeing on the grammar + * + **/ + public GFrame serverOpSetGrammar(GFrame inputFrame){ +// loggingHandler.publish(new LogRecord(Level.INFO, "Sphinx4Trans::serverOpSetGrammar inputframe=" +// + inputFrame)); + + System.out.println("SetGrammar is received frame=" + inputFrame); + GFrame result = new Clause(""); + result.setProperty("error", "true"); + + return (GFrame) RavenHack.ravenHack(result); +} + +/** +* Gets the agenda from the inputFrame +* Displays utterances that may be said +*/ +public GFrame serverOpSetDialogState(GFrame inputFrame){ + + System.out.println( "Set Dialog State got called"); + + //get the g + String dialogStateStr = ((String)inputFrame.getProperty(":dialog_state")); + //NOTE: there is a space after set_grammar BUT no space after can_say. + //why??? that's how DM sends the frame. + String grammarStr = RavenHack.findSubString(dialogStateStr, "set_grammar ="); + + String canSayStr = RavenHack.findSubString(dialogStateStr, "can_say="); + + System.err.println("serverOpSetDialogState: Grammar String=" + grammarStr ); + System.err.println("serverOpSetDialogState: Can say String=" + canSayStr ); + + //let the user know what they can say + if(canSayStr!=null) + frame.getInterpreter().print_cansay("You can say", canSayStr); + + + return null; +} + + public void startSession() { GFrame f = new Clause("main"); long time = System.currentTimeMillis()/1000; Deleted: Agents/JavaTTY/src/edu/cmu/ravenclaw/javatty/scribble3/ScribbleCanvas.java =================================================================== --- Agents/JavaTTY/src/edu/cmu/ravenclaw/javatty/scribble3/ScribbleCanvas.java 2007-04-25 19:54:23 UTC (rev 27) +++ Agents/JavaTTY/src/edu/cmu/ravenclaw/javatty/scribble3/ScribbleCanvas.java 2007-05-02 03:21:57 UTC (rev 28) @@ -1,159 +0,0 @@ -package edu.cmu.ravenclaw.javatty.scribble3; - -import net.sourceforge.jiu.codecs.*; -import net.sourceforge.jiu.gui.awt.ImageCreator; -import net.sourceforge.jiu.data.PixelImage; -import java.awt.*; -import java.awt.geom.AffineTransform; -import java.awt.geom.NoninvertibleTransformException; -import java.util.*; -import java.io.*; -import java.awt.event.*; -import java.util.EventListener; -import javax.swing.*; - -import java.awt.image.BufferedImage; -import java.awt.image.DataBuffer; -import java.awt.image.IndexColorModel; -import java.awt.image.WritableRaster; - - -public class ScribbleCanvas extends JComponent implements Scrollable { - - /** - * The list of shapes of the drawing - */ - protected java.util.List shapes = new ArrayList(); - - protected Color curColor = Color.black; - - protected EventListener listener; - - protected boolean mouseButtonDown = false; - protected int x, y; - - /** - * The width and height of the area that the map represents (in centimeters) - */ - protected float native_width, native_height; - - /** - * The width and height of the actual map image (in pixels) - */ - protected float image_width_in_pixels, image_height_in_pixels; - - /** - * The width and height of the rendered map image (in pixels). - * The map is streched when the application window grows or during zooming, etc. - */ - protected Dimension view_size; - - /** - * A transform from the map image to the rendered map image - * The map is streched when the application window grows or during zooming, etc. - */ - protected AffineTransform mapScale = new AffineTransform(); - - /** - * A transform from screen coordinates (pixels, left-handed) - * to map coordinates (centimeters, right-handed) - */ - protected AffineTransform screen_to_map = new AffineTransform(); - - /** - * A transform from map coordinates (centimeters, right-handed) - * to screen coordinates (pixels, left-handed) - */ - protected AffineTransform map_to_screen = new AffineTransform(); - - - public ScribbleCanvas() { - - String mapfile = null; - try { - Properties properties = new Properties(); - properties.load(new FileInputStream("map.properties")); - mapfile = properties.getProperty("edu.cmu.ravenclaw.pendecoder.mapfile"); - if(mapfile == null) throw new Exception("mapfile is missing"); - String widthstr = properties.getProperty("edu.cmu.ravenclaw.pendecoder.mapwidth"); - if(widthstr == null) throw new Exception("mapwidth is missing"); - String heightstr = properties.getProperty("edu.cmu.ravenclaw.pendecoder.mapheight"); - native_width = Float.parseFloat(widthstr); - native_height = Float.parseFloat(heightstr); - } catch (NumberFormatException e) { - System.err.println("Can't parse double:" + e.toString()); - System.exit(1); - } catch (Exception e) { - System.err.println("Problem with properties" + e.toString()); - System.exit(1); - } - try { - PNGCodec codec = new PNGCodec(); - codec.setFile(mapfile, CodecMode.LOAD); - codec.process(); - PixelImage pixelimage = codec.getImage(); - - setPreferredSize(new Dimension((int)image_width_in_pixels, - (int)image_height_in_pixels)); - } catch(Exception e) { - System.err.println("Problem reading or converting PNG: " + e.toString()); - System.exit(1); - } - listener = makeCanvasListener(); - addMouseListener((MouseListener) listener); - addMouseMotionListener((MouseMotionListener) listener); - } - - - public AffineTransform getScreenToMap() { - return screen_to_map; - } - - /** - * factory method - */ - protected EventListener makeCanvasListener() { - return new ScribbleCanvasListener(this); - } - - //Scrollable methods - public void setPreferredSize(Dimension d) { - view_size = d; - map_to_screen.setToScale(view_size.width/native_width, - -view_size.height/native_height); - map_to_screen.translate(native_width/2, -native_height/2); - - mapScale.setToScale(view_size.width/image_width_in_pixels, - -view_size.height/image_height_in_pixels); - mapScale.translate(0, -image_height_in_pixels); - } - - public Dimension getPreferredSize() { - return view_size; - } - - public Dimension getPreferredScrollableViewportSize() { - //return the native size of the image - return getPreferredSize(); - } - - public int getScrollableUnitIncrement(Rectangle visibleRect, int orientation, int direction) { - return 1; - } - - public int getScrollableBlockIncrement(Rectangle visibleRect, int orientation, int direction) { - //scroll by half of the visible image - if(orientation == SwingConstants.VERTICAL) return visibleRect.height/2; - else return visibleRect.width/2; - } - - public boolean getScrollableTracksViewportWidth() { - return false; - } - - public boolean getScrollableTracksViewportHeight() { - return false; - } - - private static final long serialVersionUID = -5625162305999062655L; -} Deleted: Agents/JavaTTY/src/edu/cmu/ravenclaw/javatty/scribble3/ScribbleCanvasListener.java =================================================================== --- Agents/JavaTTY/src/edu/cmu/ravenclaw/javatty/scribble3/ScribbleCanvasListener.java 2007-04-25 19:54:23 UTC (rev 27) +++ Agents/JavaTTY/src/edu/cmu/ravenclaw/javatty/scribble3/ScribbleCanvasListener.java 2007-05-02 03:21:57 UTC (rev 28) @@ -1,46 +0,0 @@ -package edu.cmu.ravenclaw.javatty.scribble3; - -import java.awt.*; -import java.awt.event.*; - -public class ScribbleCanvasListener implements MouseListener, MouseMotionListener { - - protected ScribbleCanvas canvas; - - public ScribbleCanvasListener(ScribbleCanvas canvas) { - this.canvas = canvas; - } - - public void mousePressed(MouseEvent e) { - Point p = e.getPoint(); - canvas.mouseButtonDown = true; - canvas.x = p.x; - canvas.y = p.y; - } - - public void mouseDragged(MouseEvent e) { - Point p = e.getPoint(); - if (canvas.mouseButtonDown) { - canvas.x = p.x; - canvas.y = p.y; - } - } - - public void mouseReleased(MouseEvent e) { - Point p = e.getPoint(); - canvas.mouseButtonDown = false; - } - - public void mouseClicked(MouseEvent e) { - Point p = e.getPoint(); - if(e.getClickCount() == 1) { - } - } - - public void mouseExited(MouseEvent e) {} - - public void mouseEntered(MouseEvent e) {} - - public void mouseMoved(MouseEvent e) {} - -} From antoine at cs.cmu.edu Fri May 4 14:12:35 2007 From: antoine at cs.cmu.edu (Antoine Raux) Date: Fri, 4 May 2007 14:12:35 -0400 Subject: [RavenclawDev 267] Meeting Monday 2pm WeH3123a? Message-ID: <002e01c78e77$caa3e6e0$03bd0280@sp.cs.cmu.edu> Hi everyone, I propose we have a meeting (this is mostly to Thomas and Udhay, but anyone interested can join) this Monday at 2pm, in the speech meeting room (WeH3123a). The topics to discuss are: 1) Udhay's report on progress on the VoIP at Olympus front 2) Drawing a roadmap to putting Olympus on Subversion. The goal is to have this done by the end of the month (when I leave to Japan). If you're interested in joining (or indispensable ;) ) and the time does not work for you, let me know. antoine -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.srv.cs.cmu.edu/pipermail/ravenclaw-developers/attachments/20070504/45a59d12/attachment.html From tkharris at cs.cmu.edu Mon May 7 15:43:05 2007 From: tkharris at cs.cmu.edu (TK Harris) Date: Mon, 07 May 2007 15:43:05 -0400 Subject: [RavenclawDev 268] movement to subversion Message-ID: <463F8149.7090407@cs.cmu.edu> Hi All, We're moving the following projects to subversion. We would like to freeze the projects by Wednesday. If you need to make edits after Wednesday, please let me know. If your name appears after a project, Antoine, Dan, please check in the files that are checked out for you there. Thanks, -Thomas Dumbledore Helios3 - Dan Jason Kalliope - Dan MultiDecoder/Audio_Server - Antoine MultiDecoder/Sphinx_Engine - Antoine MultiDecoder/Sphinx3_Engine NLGServer2 Phoenix2 ProcessMonitor - Antoine SessionManager Skyper LogParsers - Antoine WebDialogueBrowser From udhay at cmu.edu Fri May 11 07:02:00 2007 From: udhay at cmu.edu (Udhyakumar N) Date: Fri, 11 May 2007 07:02:00 -0400 Subject: [RavenclawDev 269] DateTime error Message-ID: <9e876f3b0705110402w7d9a50d4q58e86ab6a5b99d9a@mail.gmail.com> Hi All, I added an additional variable "valid_week" to the Date Concept to check if the given date is within one week of the current date. I am getting the following error during run-time [FATAL_ERROR at 06:59:35.229] Inconsistent confidence scores on structure items amb iguous (0.62) and valid_week (1.00) on index 0. . Any idea, what it means? Thanks, Udhay From udhay at cmu.edu Tue May 15 15:10:52 2007 From: udhay at cmu.edu (Udhyakumar N) Date: Tue, 15 May 2007 15:10:52 -0400 Subject: [RavenclawDev 270] bug in Concept.cpp??? Message-ID: <9e876f3b0705151210r28d10fe3k1f8827c4782763b0@mail.gmail.com> I happen to notice the following code in RavenClaw\DMCore\Concepts\Concept.cpp // D: clears the explicitly confirmed hyp void CConcept::ClearExplicitlyConfirmedHyp() { sExplicitlyConfirmedHyp = ""; } // D: clears the explicitly confirmed hyp void CConcept::ClearExplicitlyDisconfirmedHyp() { sExplicitlyConfirmedHyp = ""; } Both the functions clear the same variable sExplicitlyConfirmedHyp. I think the second one should be sExplicitlyDisconfirmedHyp. Could it be a bug? -Udhay From antoine at cs.cmu.edu Tue May 15 15:14:51 2007 From: antoine at cs.cmu.edu (Antoine Raux) Date: Tue, 15 May 2007 19:14:51 -0000 Subject: [RavenclawDev 271] Re: bug in Concept.cpp??? In-Reply-To: <9e876f3b0705151210r28d10fe3k1f8827c4782763b0@mail.gmail.com> References: <9e876f3b0705151210r28d10fe3k1f8827c4782763b0@mail.gmail.com> Message-ID: <001601c6fde9$fd707210$03bd0280@sp.cs.cmu.edu> This definitely looks like a bug to me... You can go ahead and fix it. Dan if there is an actual rational explanation for it being this way, let us know, and we can rollback later... antoine -----Original Message----- From: ravenclaw-developers-bounces at LOGANBERRY.srv.cs.cmu.edu [mailto:ravenclaw-developers-bounces at LOGANBERRY.srv.cs.cmu.edu] On Behalf Of Udhyakumar N Sent: Tuesday, May 15, 2007 3:11 PM To: ravenclaw-developers at cs.cmu.edu Subject: [RavenclawDev 270] bug in Concept.cpp??? I happen to notice the following code in RavenClaw\DMCore\Concepts\Concept.cpp // D: clears the explicitly confirmed hyp void CConcept::ClearExplicitlyConfirmedHyp() { sExplicitlyConfirmedHyp = ""; } // D: clears the explicitly confirmed hyp void CConcept::ClearExplicitlyDisconfirmedHyp() { sExplicitlyConfirmedHyp = ""; } Both the functions clear the same variable sExplicitlyConfirmedHyp. I think the second one should be sExplicitlyDisconfirmedHyp. Could it be a bug? -Udhay From svetastenchikova at gmail.com Fri May 18 12:36:04 2007 From: svetastenchikova at gmail.com (Svetlana Stenchikova) Date: Fri, 18 May 2007 12:36:04 -0400 Subject: [RavenclawDev 272] datetime support for day ranges Message-ID: <31cecd6b0705180936vf8399cchfc6484c7c7d04ec0@mail.gmail.com> Hi, I am considering making a change to the DateTime agent. For the purposes of my application I need to extract a range of time, e.g. "this week", "next week", "next month", "until July 4", "june 1 to june 5", etc. Current version of DateTime returns only a single day. Would you recommend incorporating the date range into the DateTime? Is the DateTime now in the svn? Should I make these changes or should I just work with my local copy? Is there a documentation spec about the datetime output format? thanks Svetlana From tkharris at cs.cmu.edu Fri May 18 15:44:20 2007 From: tkharris at cs.cmu.edu (TK Harris) Date: Fri, 18 May 2007 15:44:20 -0400 Subject: [RavenclawDev 273] Re: datetime support for day ranges In-Reply-To: <31cecd6b0705180936vf8399cchfc6484c7c7d04ec0@mail.gmail.com> References: <31cecd6b0705180936vf8399cchfc6484c7c7d04ec0@mail.gmail.com> Message-ID: <464E0214.3060708@cs.cmu.edu> Hi Svetlana, We were about to move that to the subversion repository last week, but then our RAID server crashed. It's back up now. I'll do that one first. I'm guessing that we can have it up on the repository by sometime Monday. Thanks, -Thomas Svetlana Stenchikova wrote: > Hi, > I am considering making a change to the DateTime agent. > For the purposes of my application I need to extract a range of time, > e.g. "this week", "next week", "next month", "until July 4", "june 1 > to june 5", etc. > > Current version of DateTime returns only a single day. > > Would you recommend incorporating the date range into the DateTime? > > Is the DateTime now in the svn? Should I make these changes or should > I just work with my local copy? > > Is there a documentation spec about the datetime output format? > > thanks > Svetlana > From udhay at cmu.edu Fri May 18 16:31:35 2007 From: udhay at cmu.edu (Udhyakumar N) Date: Fri, 18 May 2007 16:31:35 -0400 Subject: [RavenclawDev 274] Re: datetime support for day ranges In-Reply-To: <31cecd6b0705180936vf8399cchfc6484c7c7d04ec0@mail.gmail.com> References: <31cecd6b0705180936vf8399cchfc6484c7c7d04ec0@mail.gmail.com> Message-ID: <9e876f3b0705181331m54d38c13w981570bd6c14f9eb@mail.gmail.com> Hey > Is there a documentation spec about the datetime output format? I dont think there is any documentation available yet, it might be a good if you can start one :) Anyway, just take a look at the set_out_values() in gal_dt.c for the output data structure. You may need to update it to include your new features Thanks, Udhay From antoine at cs.cmu.edu Fri May 18 16:33:51 2007 From: antoine at cs.cmu.edu (Antoine Raux) Date: Fri, 18 May 2007 16:33:51 -0400 Subject: [RavenclawDev 275] Re: datetime support for day ranges In-Reply-To: <464E0214.3060708@cs.cmu.edu> References: <31cecd6b0705180936vf8399cchfc6484c7c7d04ec0@mail.gmail.com> <464E0214.3060708@cs.cmu.edu> Message-ID: <000901c7998b$d9206030$03bd0280@sp.cs.cmu.edu> Hi Svetlana, It is definitely a good idea to incorporate date ranges in DateTime. Unfortunately, this is the messiest agent in Olympus (in terms of code) and completely undocumented... It is directly inherited from the CMU Communicator project with additions from about every system we've built since then. I guess you'll just have to ask questions through this list. If you want, after you've had a look at it, we could have a short telephone meeting about it, if it helps things go faster... antoine -----Original Message----- From: ravenclaw-developers-bounces at LOGANBERRY.srv.cs.cmu.edu [mailto:ravenclaw-developers-bounces at LOGANBERRY.srv.cs.cmu.edu] On Behalf Of TK Harris Sent: Friday, May 18, 2007 3:44 PM To: Svetlana Stenchikova Cc: ravenclaw-developers at cs.cmu.edu Subject: [RavenclawDev 273] Re: datetime support for day ranges Hi Svetlana, We were about to move that to the subversion repository last week, but then our RAID server crashed. It's back up now. I'll do that one first. I'm guessing that we can have it up on the repository by sometime Monday. Thanks, -Thomas Svetlana Stenchikova wrote: > Hi, > I am considering making a change to the DateTime agent. > For the purposes of my application I need to extract a range of time, > e.g. "this week", "next week", "next month", "until July 4", "june 1 > to june 5", etc. > > Current version of DateTime returns only a single day. > > Would you recommend incorporating the date range into the DateTime? > > Is the DateTime now in the svn? Should I make these changes or should > I just work with my local copy? > > Is there a documentation spec about the datetime output format? > > thanks > Svetlana > From tkharris at cs.cmu.edu Fri May 18 17:51:01 2007 From: tkharris at cs.cmu.edu (TK Harris) Date: Fri, 18 May 2007 17:51:01 -0400 Subject: [RavenclawDev 276] Re: datetime support for day ranges In-Reply-To: <000901c7998b$d9206030$03bd0280@sp.cs.cmu.edu> References: <31cecd6b0705180936vf8399cchfc6484c7c7d04ec0@mail.gmail.com> <464E0214.3060708@cs.cmu.edu> <000901c7998b$d9206030$03bd0280@sp.cs.cmu.edu> Message-ID: <464E1FC5.4010802@cs.cmu.edu> Here's a place to put documentation. http://edam.speech.cs.cmu.edu/rcwiki/index.php/File_Structure_and_Components -Thomas Antoine Raux wrote: > Hi Svetlana, > > It is definitely a good idea to incorporate date ranges in DateTime. > > Unfortunately, this is the messiest agent in Olympus (in terms of code) and > completely undocumented... It is directly inherited from the CMU > Communicator project with additions from about every system we've built > since then. I guess you'll just have to ask questions through this list. If > you want, after you've had a look at it, we could have a short telephone > meeting about it, if it helps things go faster... > > antoine > > > > -----Original Message----- > From: ravenclaw-developers-bounces at LOGANBERRY.srv.cs.cmu.edu > [mailto:ravenclaw-developers-bounces at LOGANBERRY.srv.cs.cmu.edu] On Behalf Of > TK Harris > Sent: Friday, May 18, 2007 3:44 PM > To: Svetlana Stenchikova > Cc: ravenclaw-developers at cs.cmu.edu > Subject: [RavenclawDev 273] Re: datetime support for day ranges > > Hi Svetlana, > > We were about to move that to the subversion repository last week, but > then our RAID server crashed. It's back up now. I'll do that one first. > I'm guessing that we can have it up on the repository by sometime Monday. > > Thanks, > -Thomas > > Svetlana Stenchikova wrote: > >> Hi, >> I am considering making a change to the DateTime agent. >> For the purposes of my application I need to extract a range of time, >> e.g. "this week", "next week", "next month", "until July 4", "june 1 >> to june 5", etc. >> >> Current version of DateTime returns only a single day. >> >> Would you recommend incorporating the date range into the DateTime? >> >> Is the DateTime now in the svn? Should I make these changes or should >> I just work with my local copy? >> >> Is there a documentation spec about the datetime output format? >> >> thanks >> Svetlana >> >> > > > > > From tk at edam.speech.cs.cmu.edu Thu May 24 13:38:48 2007 From: tk at edam.speech.cs.cmu.edu (tk@edam.speech.cs.cmu.edu) Date: Thu, 24 May 2007 13:38:48 -0400 Subject: [RavenclawDev 277] [29] Tools/MakeLM/makelm.pl: 1) Cygwin. dll can now be found via environment variable setting Message-ID: <200705241738.l4OHcmR0025996@edam.speech.cs.cmu.edu> An HTML attachment was scrubbed... URL: http://mailman.srv.cs.cmu.edu/pipermail/ravenclaw-developers/attachments/20070524/736a9c62/attachment.html -------------- next part -------------- Modified: Tools/MakeLM/makelm.pl =================================================================== --- Tools/MakeLM/makelm.pl 2007-05-02 03:21:57 UTC (rev 28) +++ Tools/MakeLM/makelm.pl 2007-05-24 17:38:48 UTC (rev 29) @@ -14,6 +14,8 @@ my $LOGFILE = 'log.txt'; open(LOG, ">$LOGFILE") if $LOGFILE; +$ENV{'Path'} .= ($ENV{'CYGWIN_DIR'} || 'C:\cygwin').'\bin;'; + my $RESOURCESDIR = File::Spec->catdir(File::Spec->updir, File::Spec->updir, 'Resources'); #my $SOURCE = 'fife'; my $SOURCE = 'lexdata'; @@ -55,6 +57,12 @@ &say('compile', 'compiling grammar...'); chdir($GRAMMARDIR); +if (!-e "${PROJECT}Task.gra") { + open(TEMPLATE, "${PROJECT}Task-template.gra") || die "Can't open template"; + open(TASK, ">${PROJECT}Task.gra") || die "Can't open task"; + print TASK grep(!/%%/,