Package org.apache.stanbol.commons.opennlp

Examples of org.apache.stanbol.commons.opennlp.OpenNLP


   
   
    private static OpenNLP openNLP;   
    @BeforeClass
    public static void init(){
        openNLP = new OpenNLP(new ClasspathDataFileProvider("DUMMY"));
    }
View Full Code Here


   
    private static OpenNLP openNLP;   
    @BeforeClass
    public static void init(){
        openNLP = new OpenNLP(new ClasspathDataFileProvider("DUMMY"));
    }
View Full Code Here

    public static OpenNLP openNLP;
   
    @BeforeClass
    public static void initDataFileProvicer(){
        DataFileProvider dataFileProvider = new ClasspathDataFileProvider(FAKE_BUNDLE_SYMBOLIC_NAME);
        openNLP = new OpenNLP(dataFileProvider);
    }
View Full Code Here

        this.openNLP = openNLP;
        this.config = config;
    }
   
    NEREngineCore(DataFileProvider dfp,NEREngineConfig config) throws InvalidFormatException, IOException {
        this(new OpenNLP(dfp),config);
    }
View Full Code Here

    public static final String TYPE = NamespaceEnum.rdf+"type";
    public static final String REDIRECT = NamespaceEnum.rdfs+"seeAlso";

    @BeforeClass
    public static void setUpServices() throws IOException {
        openNLP = new OpenNLP(new ClasspathDataFileProvider("DUMMY_SYMBOLIC_NAME"));
        searcher = new TestSearcherImpl(NAME,SimpleTokenizer.INSTANCE);
        //add some terms to the searcher
        Representation rep = factory.createRepresentation("urn:test:PatrickMarshall");
        rep.addNaturalText(NAME, "Patrick Marshall");
        rep.addReference(TYPE, OntologicalClasses.DBPEDIA_PERSON.getUnicodeString());
View Full Code Here

        this.defaultLang = defaultLanguage;
        this.processedLangs = Collections.unmodifiableSet(processedLanguages);
    }
   
    NEREngineCore(DataFileProvider dfp,String defaultLanguage, Set<String> processedLanguages) throws InvalidFormatException, IOException {
        this(new OpenNLP(dfp),defaultLanguage,processedLanguages);
    }
View Full Code Here

    public static final String TYPE = NamespaceEnum.rdf+"type";
    public static final String REDIRECT = NamespaceEnum.rdfs+"seeAlso";

    @BeforeClass
    public static void setUpServices() throws IOException {
        openNLP = new OpenNLP(new ClasspathDataFileProvider("DUMMY_SYMBOLIC_NAME"));
        searcher = new TestSearcherImpl(NAME,SimpleTokenizer.INSTANCE);
        //add some terms to the searcher
        Representation rep = factory.createRepresentation("urn:test:PatrickMarshall");
        rep.addNaturalText(NAME, "Patrick Marshall");
        rep.addReference(TYPE, OntologicalClasses.DBPEDIA_PERSON.getUnicodeString());
View Full Code Here

   
    private static OpenNLP openNLP;   
    @BeforeClass
    public static void init(){
        openNLP = new OpenNLP(new ClasspathDataFileProvider("DUMMY"));
    }
View Full Code Here

    public static final void init() throws ConfigurationException {
        Dictionary<String,Object> config = new Hashtable<String,Object>();
        config.put(LabelTokenizer.SUPPORTED_LANUAGES, "*");
        ComponentContext cc = new MockComponentContext(config);
        tokenizer = new OpenNlpLabelTokenizer();
        tokenizer.openNlp = new OpenNLP(new ClasspathDataFileProvider(null));
        tokenizer.activate(cc);
    }
View Full Code Here

TOP

Related Classes of org.apache.stanbol.commons.opennlp.OpenNLP

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.