Commit 0025e754 authored by Christos Christodoulopoulos's avatar Christos Christodoulopoulos
Browse files

Minor fixes

 - Fixed reading of reference lists
 - Adjusted max size/resizing behaviour in Tree Edit window
Changed README to a markdown version
parent 68b4acab
Branch of the Jubilee project (http://code.google.com/p/propbank/) to deal with new babySRL annotation.
v0.2 Released
- Added context from .CHA files (requires a separate .context file; see resource dir)
- Annotation resumes from last edited/saved example
- Colour-coded annotator box: red->automatic annotation, green->previously annotated data, grey->manually annotated
- tregex/tree surgeon integration (saves a separate .mrg.<annnotator> file; see treebank dir)
#Jubilee - babySRL
Branch of the [Jubilee project](http://code.google.com/p/propbank/) to deal with new babySRL annotation.
###Prerequisites
Java 7 (1.7)
###Usage
First, make sure the folder containing the main `jubilee.jar` file contains the following folders:
* system
* resource/annotation
* resource/frameset
* resource/task
Then, in the command line, navigate to the project's folder and run:
java -jar jubilee.jar -u <USERNAME>
\ No newline at end of file
......@@ -563,18 +563,26 @@ public class JBToolkit extends JFrame implements ActionListener, ItemListener, L
@SuppressWarnings("static-access")
private void menuHelpAbout() {
String msg = str_frameTitle + "\n";
String msg = str_frameTitle + "\n\n";
msg += "Jinho D. Choi\n";
msg += "University of Colorado\n\n";
msg += "http://code.google.com/p/propbank/";
msg += "University of Colorado\n";
msg += "http://code.google.com/p/propbank/\n\n";
msg += "and\n\n";
msg += "Christos Christodoulopoulos\n";
msg += "University of Illinois\n";
msg += "https://gitlab-beta.engr.illinois.edu/babysrl-group/jubilee\n";
new JOptionPane().showMessageDialog(this, msg, "About", JOptionPane.INFORMATION_MESSAGE);
}
public String getTerminalsList() {
String listStr = "";
for (String[] strings : terminalsList) {
listStr += strings[0] + "\t" + strings[1] + "\n";
listStr += strings[0] + "\t" + strings[1] + " ";
if (strings.length > 2) {
for (int i = 2; i < strings.length; i++) listStr += strings[i] + " ";
}
listStr = listStr.trim() + "\n";
}
return listStr;
}
......@@ -582,8 +590,12 @@ public class JBToolkit extends JFrame implements ActionListener, ItemListener, L
public String getNonTerminalsList() {
String listStr = "";
for (String[] strings : nonTerminalsList) {
listStr += strings[0] + "\t" + strings[1] + "\n";
listStr += strings[0] + "\t" + strings[1] + " ";
if (strings.length > 2) {
for (int i = 2; i < strings.length; i++) listStr += strings[i] + " ";
}
listStr = listStr.trim() + "\n";
}
return listStr;
return listStr.trim();
}
}
......@@ -63,6 +63,7 @@ public class JBTreeEditPanel extends JFrame implements ActionListener {
addArgsPanel.add(fieldWordPos);
addArgsPanel.setBorder(BorderFactory.createTitledBorder(
BorderFactory.createLineBorder(Color.BLACK), "Reposition SRL labels"));
addArgsPanel.setMaximumSize(new Dimension(390, 50));
// Set layout and add components
JPanel leftPanel = new JPanel();
......@@ -80,6 +81,7 @@ public class JBTreeEditPanel extends JFrame implements ActionListener {
leftPanel.add(Box.createRigidArea(new Dimension(0, 20)));
leftPanel.add(buttonPanel);
leftPanel.setBorder(BorderFactory.createEmptyBorder(5, 5, 5, 5));
leftPanel.setMaximumSize(new Dimension(400, 480));
JPanel rightPanel = new JPanel();
rightPanel.setLayout(new BoxLayout(rightPanel, BoxLayout.Y_AXIS));
......@@ -89,14 +91,12 @@ public class JBTreeEditPanel extends JFrame implements ActionListener {
referenceNonTerminalsTextArea.setEditable(false);
JScrollPane referenceNonTerminalsScrollPane = new JScrollPane(referenceNonTerminalsTextArea);
referenceNonTerminalsScrollPane.setMinimumSize(referenceDimension);
referenceNonTerminalsScrollPane.setMaximumSize(referenceDimension);
referenceNonTerminalsScrollPane.setPreferredSize(referenceDimension);
JTextArea referenceTerminalsArea = new JTextArea(parent.getTerminalsList());
referenceTerminalsArea.setEditable(false);
JScrollPane referenceTerminalsScrollPane = new JScrollPane(referenceTerminalsArea);
referenceTerminalsScrollPane.setMinimumSize(referenceDimension);
referenceTerminalsScrollPane.setMaximumSize(referenceDimension);
referenceTerminalsScrollPane.setPreferredSize(referenceDimension);
rightPanel.add(new JLabel("Reference lists:"));
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment