You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 19, 2020. It is now read-only.
Hi - could you please check the below Readme extracts
val tagger = epic.models.deserialize[CRF[AnnotatedLabel, String]]("lib/epic-ner-en-conll_2.10-2014.6.3-SNAPSHOT.jar")
val segments = tagger(sentence)
println(tags.render(tagger.outsideLabel))
Gives a compile error "epic.sequences.CRF[epic.trees.AnnotatedLabel,String] does not take parameters"
I tried updating this slightly to the below,
val tagger = epic.models.deserialize[SemiCRF[AnnotatedLabel, String]](("lib/epic-ner-en-conll_2.10-2014.6.3-SNAPSHOT.jar"))
val sentenceSplitter = MLSentenceSegmenter.bundled().get
val tokenizer = new epic.preprocess.TreebankTokenizer()
val sentences: IndexedSeq[IndexedSeq[String]] = sentenceSplitter(input).map(tokenizer(_))
var result = ""
sentences.map{
sentence =>
val tags = tagger.bestSequence(sentence)
result = tags.render(tagger.outsideSymbol)
}
result
Compiles and runs - but doesn't give very interesting output
Thanks,
Brent
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hi - could you please check the below Readme extracts
Gives a compile error "epic.sequences.CRF[epic.trees.AnnotatedLabel,String] does not take parameters"
I tried updating this slightly to the below,
Compiles and runs - but doesn't give very interesting output
Thanks,
Brent
The text was updated successfully, but these errors were encountered: