001 package org.maltparser.core.symbol; 002 003 import java.io.InputStreamReader; 004 import java.io.OutputStreamWriter; 005 import java.util.Set; 006 007 import org.apache.log4j.Logger; 008 import org.maltparser.core.exception.MaltChainedException; 009 010 public interface SymbolTableHandler extends TableHandler { 011 public SymbolTable addSymbolTable(String tableName) throws MaltChainedException; 012 public SymbolTable addSymbolTable(String tableName, SymbolTable parentTable) throws MaltChainedException; 013 public SymbolTable addSymbolTable(String tableName, int columnCategory, String nullValueStrategy) throws MaltChainedException; 014 public SymbolTable addSymbolTable(String tableName, int columnCategory, String nullValueStrategy, String rootLabel) throws MaltChainedException; 015 public SymbolTable getSymbolTable(String tableName) throws MaltChainedException; 016 public Set<String> getSymbolTableNames(); 017 public void save(OutputStreamWriter osw) throws MaltChainedException; 018 public void save(String fileName, String charSet) throws MaltChainedException; 019 public void load(InputStreamReader isr) throws MaltChainedException; 020 public void load(String fileName, String charSet) throws MaltChainedException; 021 public void printSymbolTables(Logger logger) throws MaltChainedException; 022 public SymbolTable loadTagset(String fileName, String tableName, String charSet, int columnCategory, String nullValueStrategy) throws MaltChainedException; 023 public SymbolTable loadTagset(String fileName, String tableName, String charSet, int columnCategory, String nullValueStrategy, String rootLabel) throws MaltChainedException; 024 }