stanford corenlp, splitting sentences, abbreviation exceptions

前端 未结 1 1412
难免孤独
难免孤独 2021-01-16 17:07

Is there an option in Stanford Corenlp for specifying abbreviations? For example in the sentence: The reason pt. stayed at home was to rest. pt is the abbreviat

相关标签:
1条回答
  • 2021-01-16 17:45

    The short answer is "no, there's no way to specify custom abbreviations currently" (as far as I know). The longer answer is that this code lives in a *.flex file, and you could add custom abbreviations to it. I think the place to do so is in PTBLexer.flex under the ABBREV1 definition.

    0 讨论(0)
提交回复
热议问题