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

Word tokenization

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: language model
    • Labels:
    • Environment:
      Windows Server 2016, R version 3.3.3
    • Flags:
      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. contractionsdiff.txt
          5 kB
          Bharani Sruthi
        2. openNLP-output.png
          15 kB
          Dippy Aggarwal
        3. OpenNLPSampleProgramOutput.png
          114 kB
          Bharani Sruthi
        4. openNLPTest.py
          0.2 kB
          Bharani Sruthi
        5. openNLPTest.r
          0.4 kB
          Dippy Aggarwal

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              dippyaggarwal Dippy Aggarwal
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated: