|
Joshua
open source statistical hierarchical phrase-based machine translation system
|
Static Public Member Functions | |
| static Set< String > | getFields (File grammarFile, String fieldDelimiter, int fieldNumber) throws FileNotFoundException |
| static void | compareValues (File grammarFile1, File grammarFile2, String fieldDelimiter, int fieldNumber, String scoresDelimiter, int scoresFieldNumber, float delta) throws FileNotFoundException |
| static void | main (String[] args) throws FileNotFoundException |
Static Private Attributes | |
| static final Logger | logger = Logger.getLogger(CompareGrammars.class.getName()) |
This class allows two grammars (loaded from disk) to be compared.
| static void joshua.util.CompareGrammars.compareValues | ( | File | grammarFile1, |
| File | grammarFile2, | ||
| String | fieldDelimiter, | ||
| int | fieldNumber, | ||
| String | scoresDelimiter, | ||
| int | scoresFieldNumber, | ||
| float | delta | ||
| ) | throws FileNotFoundException [static] |
| static Set<String> joshua.util.CompareGrammars.getFields | ( | File | grammarFile, |
| String | fieldDelimiter, | ||
| int | fieldNumber | ||
| ) | throws FileNotFoundException [static] |
Gets a set containing all unique instances of the specified field.
| grammarFile | File containing a grammar. |
| fieldDelimiter | Regular expression to split each line |
| fieldNumber | Field from each rule to extract |
| FileNotFoundException |
| static void joshua.util.CompareGrammars.main | ( | String[] | args | ) | throws FileNotFoundException [static] |
Main method.
| args | names of the two grammars to be compared |
| FileNotFoundException |
final Logger joshua.util.CompareGrammars.logger = Logger.getLogger(CompareGrammars.class.getName()) [static, private] |
Logger for this class.