Coder Social home page Coder Social logo

Comments (3)

GoogleCodeExporter avatar GoogleCodeExporter commented on May 28, 2024
Additional tokenization differences.

Text: I said at 4:45pm.
Expected: [I, said, at, 4:45, pm, .]
ClearNLP: [I, said, at, 4:45pm, .]

Text:
I can't believe they wanna keep 40% of that."
        ``Whatcha think?''
        "I don't --- think so...,"
Expected: [I, ca, n't, believe, they, wan, na, keep, 40, %, of, that, ., ", ``, 
Wha, t, cha, think, ?, '', ", I, do, n't, ---, think, so, ..., ,, "]
ClearNLP: [I, ca, n't, believe, they, wan, na, keep, 40, %, of, that, ., ", `, 
`, Whatcha, think, ?, ', ', ", I, do, n't, ---, think, so, ..., ,, "]

Text: 
You `paid' US$170,000?!
        You should've paid only$16.75.
Expected: [You, `, paid, ', US$, 170,000, ?, !, You should, 've, paid, only, $, 
16.75, .]
ClearNLP: [You, `, paid, ', US, $, 170,000, ?!, You, should, 've, paid, only, 
$, 16.75, .]


Text: 
1. Buy a new Chevrolet (37%-owned in the U.S..) . 15%
Expected: [1, ., Buy, a, new, Chevrolet, (, 37%-owned, in, the, U.S, .., ), ., 
15, %]
ClearNLP: [1, ., Buy, a, new, Chevrolet, (, 37, %, -, owned, in, the, U.S, .., 
), ., 15, %]
** Though for this one, ClearNLP disagrees with the ClearTK tokenizer, and 
agrees with the Stanford parser on "37%-owned". **

Original comment by lee.becker on 27 Oct 2012 at 7:48

from clearnlp.

GoogleCodeExporter avatar GoogleCodeExporter commented on May 28, 2024
[deleted comment]

from clearnlp.

GoogleCodeExporter avatar GoogleCodeExporter commented on May 28, 2024
Lee,

Here are my answers.  All the bugfixes will be applied to the following 
version, which is coming in next 2 days.  Thanks for finding these  bugs and 
please let me know if you find more.  I expect the tokenizer  to keep evolving!

1. The cases of `` and '' are bugs, they are fixed now.
2. The case of "AT&T" is a known bug; the LDC tokenizer handles it as the 
ClearNLP tokenizer does.  I made a simple heuristic to get around with it 
("\\p{Upper}\\&\\p{Upper}"); I didn't want to go with the dictionary approach 
for this case since that can cover only so far.
3. The case of "whatcha" should be "what cha" instead of "wha t cha".  This is 
also fixed now.
4. The case of "4:45pm." is a bug; it is fixed now.
5. "US" and "$" are now joined as "US$".
6. The case of "?!" is intentional; all period-like punctuation (e.g., ".", 
"!", and "?") are grouped as one unit in the ClearNLP tokenizer.
7. For the last example ("1. Buy …"), the ClearNLP is doing the same as the 
LDC tokenizer.  The hyphenation is a change that LDC made few years ago which I 
don't think was applied to the OpenNLP.

Jinho

Original comment by [email protected] on 29 Oct 2012 at 11:08

from clearnlp.

Related Issues (10)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.