All Downloads are FREE. Search and download functionalities are using the official Maven repository.

nlp.NLPConfigLoader Maven / Gradle / Ivy

There is a newer version: 5.6.240
Show newest version
package nlp;

import com.fasterxml.jackson.databind.ObjectMapper;

import java.io.File;
import java.io.IOException;

public class NLPConfigLoader {


    public static NLPConfig loadFromFile(String path){
        ObjectMapper mapper = new ObjectMapper();
        NLPConfig config = null;
        try {
            config = mapper.readValue(new File(path), NLPConfig.class);
            return config;
        } catch (IOException e) {
           e.printStackTrace();
        }
        return config;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy