Exemplo n.º 1
0
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in .NET:
//ORIGINAL LINE: public DataFormatSpecification loadDataFormat(java.net.URL dataFormatUrl) throws org.maltparser.core.exception.MaltChainedException
        public virtual DataFormatSpecification loadDataFormat(URL dataFormatUrl)
        {
            if (dataFormatUrl == null)
            {
                return(null);
            }
            DataFormatSpecification dataFormat = fileNameDataFormatSpecs[dataFormatUrl.ToString()];

            if (dataFormat == null)
            {
                dataFormat = new DataFormatSpecification();
                dataFormat.parseDataFormatXMLfile(dataFormatUrl);
                fileNameDataFormatSpecs[dataFormatUrl.ToString()] = dataFormat;
                nameDataFormatSpecs[dataFormat.DataFormatName]    = dataFormat;
//JAVA TO C# CONVERTER WARNING: The original Java variable was marked 'final':
//ORIGINAL LINE: final org.maltparser.core.helper.URLFinder f = new org.maltparser.core.helper.URLFinder();
                UrlFinder f = new UrlFinder();

                foreach (Dependency dep in dataFormat.Dependencies)
                {
                    loadDataFormat(f.FindUrLinJars(dep.UrlString));
                }
            }
            return(dataFormat);
        }
Exemplo n.º 2
0
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in .NET:
//ORIGINAL LINE: public DataFormatManager(java.net.URL inputFormatUrl, java.net.URL outputFormatUrl) throws org.maltparser.core.exception.MaltChainedException
        public DataFormatManager(URL inputFormatUrl, URL outputFormatUrl)
        {
            fileNameDataFormatSpecs = new HashMap <string, DataFormatSpecification>();
            nameDataFormatSpecs     = new HashMap <string, DataFormatSpecification>();
            inputDataFormatSpec     = loadDataFormat(inputFormatUrl);
            outputDataFormatSpec    = loadDataFormat(outputFormatUrl);
        }
 public Dependency(DataFormatSpecification outerInstance, string dependentOn, string urlString, string map, string mapUrl)
 {
     this.outerInstance = outerInstance;
     DependentOn        = dependentOn;
     UrlString          = urlString;
     Map    = map;
     MapUrl = mapUrl;
 }
Exemplo n.º 4
0
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in .NET:
//ORIGINAL LINE: public DataFormatInstance(java.util.Map<String, DataFormatEntry> entries, org.maltparser.core.symbol.SymbolTableHandler symbolTables, String nullValueStrategy, DataFormatSpecification dataFormarSpec) throws org.maltparser.core.exception.MaltChainedException
        public DataFormatInstance(IDictionary <string, DataFormatEntry> entries, SymbolTableHandler symbolTables, string nullValueStrategy, DataFormatSpecification dataFormarSpec)
        {
            columnDescriptions  = new SortedSet <ColumnDescription>();
            this.dataFormarSpec = dataFormarSpec;
            createColumnDescriptions(symbolTables, entries, nullValueStrategy);
        }