Rails Server crashes Chrome “No Data Received”

断了今生、忘了曾经 提交于 2019-12-12 00:30:53

问题


I have loaded the 'stanford-core-nlp' gem and am trying to use it in my fledgling app. However, every time I try to show the rendered text, I receive this error message from Chrome and the rails server exits, citing Trace/BPT trap: 5.

I have searched other similar Rails errors but can't find anything that seems to match my situation. The only thing I can think of is that the code below is causing some kind of issue?

def pos_tagger (text)
    require 'stanford-core-nlp'
    pipeline =  StanfordCoreNLP.load(:tokenize, :ssplit, :pos, :lemma, :parse, :ner, :dcoref)
    text = StanfordCoreNLP::Annotation.new(text)
    newtext = pipeline.annotate(text)
    return newtext
end

Should I - a newbie - back away from using this module and try something else?

来源:https://stackoverflow.com/questions/18047661/rails-server-crashes-chrome-no-data-received

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!