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 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…