Beispiel #1
0
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in .NET:
//ORIGINAL LINE: public static void loadMalt04Depset(String fileName, String charSet, String nullValueStrategy, org.maltparser.core.symbol.SymbolTableHandler symbolTableHandler, org.apache.log4j.Logger logger) throws org.maltparser.core.exception.MaltChainedException
        public static void loadMalt04Depset(string fileName, string charSet, string nullValueStrategy, SymbolTableHandler symbolTableHandler, Logger logger)
        {
            if (!fileName.Equals("", StringComparison.OrdinalIgnoreCase))
            {
                if (logger.InfoEnabled)
                {
                    logger.info("Loading dependency type tagset '" + fileName + "'...\n");
                }
                symbolTableHandler.loadTagset(fileName, "DEPREL", charSet, ColumnDescription.DEPENDENCY_EDGE_LABEL, ColumnDescription.STRING, nullValueStrategy);
            }
        }
Beispiel #2
0
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in .NET:
//ORIGINAL LINE: public static void loadMalt04Cposset(String fileName, String charSet, String nullValueStrategy, org.maltparser.core.symbol.SymbolTableHandler symbolTableHandler, org.apache.log4j.Logger logger) throws org.maltparser.core.exception.MaltChainedException
        public static void loadMalt04Cposset(string fileName, string charSet, string nullValueStrategy, SymbolTableHandler symbolTableHandler, Logger logger)
        {
            if (!fileName.Equals("", StringComparison.OrdinalIgnoreCase))
            {
                if (logger.InfoEnabled)
                {
                    logger.info("Loading coarse-grained part-of-speech tagset '" + fileName + "'...\n");
                }
                symbolTableHandler.loadTagset(fileName, "CPOSTAG", charSet, ColumnDescription.INPUT, ColumnDescription.STRING, nullValueStrategy);
            }
        }