Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
254 views
in Technique[技术] by (71.8m points)

Rails Server crashes Chrome "No Data Received"

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?

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...