Examples of analyzeDocument()


Examples of com.python.pydev.analysis.OccurrencesAnalyzer.analyzeDocument()

            }

            //ok, let's do it
            OccurrencesAnalyzer analyzer = new OccurrencesAnalyzer();
            checkStop();
            IMessage[] messages = analyzer.analyzeDocument(nature, module, analysisPreferences, document,
                    this.internalCancelMonitor, DefaultIndentPrefs.get());

            checkStop();
            if (DebugSettings.DEBUG_ANALYSIS_REQUESTS) {
                Log.toLogFile(this, "Adding markers for module: " + moduleName);
View Full Code Here

Examples of com.python.pydev.analysis.OccurrencesAnalyzer.analyzeDocument()

        AnalysisPreferences.getAnalysisPreferences();
      analysisPreferences.clearCaches();
      IIndentPrefs indentPrefs = DefaultIndentPrefs.get();
      indentPrefs.regenerateIndentString(); // TAB_INDENT pref may have changd.
      OccurrencesAnalyzer analyzer = new OccurrencesAnalyzer();
      IMessage[] messages = analyzer.analyzeDocument(
        nature, module, analysisPreferences, document,
        new NullProgressMonitor(), indentPrefs);

      Preferences prefs = getPreferences();
View Full Code Here

Examples of org.apache.clerezza.uima.utils.UIMAExecutor.analyzeDocument()

    Map<String, Object> parameters = new HashMap<String, Object>();
    parameters.put(OUTPUTGRAPH, uriString);
    try {
      URL url = URI.create(uriString).toURL();
      String text = IOUtils.toString(url.openConnection().getInputStream());
      executor.analyzeDocument(text, new XMLInputSource(getClass().getResource(PATH)), parameters);
    } catch (Exception e) {
      throw new WebApplicationException(Response.status(
              Response.Status.INTERNAL_SERVER_ERROR).entity(new StringBuilder("Failed UIMA execution on URI ").
              append(uriString).append(" due to \n").append(e.getLocalizedMessage()).toString()).build());
    }
View Full Code Here

Examples of org.apache.clerezza.uima.utils.UIMAExecutor.analyzeDocument()

    UIMAExecutor executor = UIMAExecutorFactory.getInstance().createUIMAExecutor();
    Map<String, Object> parameters = new HashMap<String, Object>();
    parameters.put(OUTPUTGRAPH, uri);
    parameters.put(ALCHEMYKEY, key);
    try {
      executor.analyzeDocument(uri, new XMLInputSource(getClass().getResource(PATH)), parameters);
    } catch (Exception e) {
      throw new WebApplicationException(Response.status(
              Response.Status.INTERNAL_SERVER_ERROR).entity(new StringBuilder("Failed UIMA execution on URI ").
              append(uri).append(" due to \n").append(e.getLocalizedMessage()).toString()).build());
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.