edu.berkeley.nlp.PCFGLA.WriteGrammarToTextFile Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of berkeleyparser Show documentation
Show all versions of berkeleyparser Show documentation
The Berkeley parser analyzes the grammatical structure of natural language using probabilistic context-free grammars (PCFGs).
The newest version!
/**
*
*/
package edu.berkeley.nlp.PCFGLA;
import java.io.BufferedWriter;
import java.io.FileWriter;
import java.io.IOException;
import java.io.Writer;
import edu.berkeley.nlp.util.Numberer;
/**
* @author petrov
*
*/
public class WriteGrammarToTextFile {
/**
* @param args
*/
public static void main(String[] args) {
if (args.length<2) {
System.out.println(
"usage: java -cp berkeleyParser.jar edu/berkeley/nlp/parser/WriteGrammarToTextFile
© 2015 - 2025 Weber Informatics LLC | Privacy Policy