Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion .classpath
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,13 @@
<classpathentry kind="con" path="org.apache.ivyde.eclipse.cpcontainer.IVYDE_CONTAINER/?project=QuantityTagger&amp;ivyXmlPath=ivy.xml&amp;confs=*"/>
<classpathentry kind="lib" path="configs"/>
<classpathentry kind="lib" path="lib/jaws-bin.jar"/>
<classpathentry combineaccessrules="false" kind="src" path="/Shared"/>
<classpathentry kind="lib" path="lib/LibLINEAR.jar"/>
<classpathentry kind="lib" path="lib/shared.jar"/>
<classpathentry kind="lib" path="lib/commons-collections4-4.0.jar"/>
<classpathentry kind="lib" path="lib/commons-lang3-3.3.2.jar"/>
<classpathentry kind="lib" path="lib/liblinear-1.94.jar"/>
<classpathentry kind="lib" path="lib/stanford-parser-3.3.1.jar"/>
<classpathentry kind="lib" path="lib/trove4j-3.0.3.jar"/>
<classpathentry kind="lib" path="lib/weka-dev-3.7.10.jar"/>
<classpathentry kind="output" path="bin"/>
</classpath>
2 changes: 1 addition & 1 deletion data/unitLabel4Text.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9955,7 +9955,7 @@ period a year ago. Revenue was nearly unchanged at $20.40bn, compared with $20.4
<h>CO2 emissions from gaseous fuel consumption (% of total) in France was 24.20 as of 2009.</h>
<ht>
CO2 emissions from gaseous fuel consumption (% of total) CO2 emissions from gaseous fuel consumption (% of total) in France was 24.20 as of 2009. Its highest value</ht>
<u>
<u>percent</u>
</r>
</root>

Binary file added lib/commons-collections4-4.0.jar
Binary file not shown.
Binary file added lib/commons-lang3-3.3.2.jar
Binary file not shown.
Binary file added lib/jaws-bin.jar
Binary file not shown.
Binary file added lib/liblinear-1.94.jar
Binary file not shown.
Binary file added lib/stanford-parser-3.3.1.jar
Binary file not shown.
Binary file added lib/trove4j-3.0.3.jar
Binary file not shown.
Binary file added lib/weka-dev-3.7.10.jar
Binary file not shown.
2 changes: 1 addition & 1 deletion src/catalog/WordnetFrequency.java
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
import edu.smu.tspell.wordnet.WordNetDatabase;

public class WordnetFrequency implements WordFrequency, Serializable {
public static String WordNetDictPath="/mnt/b100/d0/library/public_html/wordnet/WordNet-2.1/dict";
public static String WordNetDictPath="/usr/local/WordNet-3.0/dict";
public static String quantityTypeString = "how much there is of something that you can quantify";
public static String quantitySearchString = "quantity";
public static String calendarMonth = "calendar month";
Expand Down
2 changes: 1 addition & 1 deletion src/eval/Test.java
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
public class Test {
// public static String GroundTruthFile = "/mnt/a99/d0/WWT/workspace/WWT_GroundTruthV2/unitLabel4Text.xml"; //"/mnt/a99/d0/sunita/workspace.broken/WWT/expts/out.uniq.0.xml"; //

public static String GroundTruthFile = "/mnt/a99/d0/WWT/workspace/WWT_GroundTruthV2/unitLabel4Text.xml";
public static String GroundTruthFile = "data/unitLabel4Text.xml";
//Added some code to write to output file.
public static String ResultsFile = "/mnt/a99/d0/ashishm/dataset/version3/results2_context.txt";
File resultFile;
Expand Down
21 changes: 21 additions & 0 deletions src/eval/UnitExtractor.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
package eval;

import iitb.shared.XMLConfigs;

import org.w3c.dom.Element;

import parser.CFGParser4Text;
import catalog.QuantityCatalog;

public class UnitExtractor {
public QuantityCatalog quantDict;
public CFGParser4Text parser;

public UnitExtractor() throws Exception {
this.quantDict = new QuantityCatalog((Element)null);

Element emptyElement = XMLConfigs.emptyElement();
this.parser = new CFGParser4Text(emptyElement,quantDict);
}

}