locked
Execute R Script: Using NLP and openNLP, error with rJava RRS feed

  • Question

  • I am running an R script in Azure ML.  This script uses the packages NLP and OpenNLP, both of which are supported in Azure ML as per this link.   The script fails at this line of code:

    wordAnnotation<-NLP::annotate(x,list(openNLP::Maxent_Sent_Token_Annotator(),openNLP::Maxent_Word_Token_Annotator()))
    
    

    The error is pasted below. Would someone know what is happening? how do I fix this?

    .onLoad failed in loadNamespace() for 'rJava', details:
      call: inDL(x, as.logical(local), as.logical(now), ...)
      error: unable to load shared object 'C:/ThirdParty/library/rJava/libs/x64/rJava.dll':
      LoadLibrary failure:  The specified module could not be found.
    


    Tuesday, June 19, 2018 4:40 AM

All replies

  • Hi,

    Can you please try it in Notebook environment to see if it works?

    Regards,

    Yutong

    Tuesday, June 19, 2018 11:43 PM
  • Hi,

    I am checking if the solution works for you, please respond here if you have any further problems.

    Regards,

    Yutong

    Sunday, June 24, 2018 8:03 PM