Uploaded image for project: 'OpenNLP'
  1. OpenNLP
  2. OPENNLP-1202

Word tokenization

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Feedback Received
    • None
    • None
    • language model
    • Windows Server 2016, R version 3.3.3
    • Important

    Description

      Came across an issue for identifying words in a sentence. For words such as can't, the tokenization using openNLP yields two words: "ca" and "n't"

      As an example (captured in the screenshot), see the tokenization for the string

      When heard the Xenogears soundtrack, so can't really describe.

      Note the words marked by ID's 9 and 10 in the openNLP-output.png file. 

      Not sure if I am missing any parameters that would produce the correct result? 

      Would appreciate any ideas/community's attention to this issue. Thanks. 

       

      Attachments

        1. openNLPTest.r
          0.4 kB
          Dippy Aggarwal
        2. openNLPTest.py
          0.2 kB
          Bharani Sruthi
        3. OpenNLPSampleProgramOutput.png
          114 kB
          Bharani Sruthi
        4. openNLP-output.png
          15 kB
          Dippy Aggarwal
        5. contractionsdiff.txt
          5 kB
          Bharani Sruthi

        Activity

          People

            Unassigned Unassigned
            dippyaggarwal Dippy Aggarwal
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: