Comments (3)
Weirdly it seems like it's the word "constructor"
that's the problem! I can insert dashes into other phrases and it works fine, and the word "constructor"
on its own causes that error. Anyway, looking into it, thanks for the bug report.
from pos-js.
Oh. At one point in the code it does a word lookup:
this.lexicon[word];
But if the word is "constructor" it grabs Object.prototype.constructor
. Whoops. Fixing now.
from pos-js.
Okay, I've pushed a fix and updated the npm package to 0.1.5
. Thanks again, @harthur.
from pos-js.
Related Issues (20)
- Push updated release to NPM HOT 3
- tagging "Open" as NNP HOT 13
- Rule 2 bails on __proto__ HOT 2
- Lexer fails on emails, URLS, and ID's
- Lexer fails with times such as `10:00AM` HOT 1
- Lexer fails with contractions? HOT 2
- built-in rule3 (NN & ends with 'AL') mis-classifies "pal" HOT 3
- default tag
- Fail: 'I' -> NN and not PRP HOT 3
- Feature: tag whitespace
- Clarify License as being LGPL HOT 1
- Tagger identifies the name Fred as a VBN HOT 1
- POSTAGGER for brazilian portuguese HOT 1
- Abbreviations
- Didn't detect CD and LS HOT 1
- Dealing with apostrophes HOT 3
- Exclamation mark isn't tags as a sent-final punct HOT 3
- Multiple Language
- Multiple tag options for a word not working
- Cardinal numbers detected as NN instead of CD (Cardinal numbers)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pos-js.