#NumberRange only visible in debugging/logging?
See original GitHub issueI have seen #NumberRange
in the verbose logging output, and throughout the source code, but can’t seem to be able to use to it in any way. Possibly a bug?
I noticed it also gets tagged as a #Value
in the verbose log but then disappears
I suspect it’s because the contraction 1-2
gets expanded to 1 to 2
so the original tags get lost somewhere?
// verbose
> nlp('1-2 kg')
kg + Unit
kg + → Noun
1-2 + Value
1-2 + NumberRange
1-2 + → Contraction
kg + Singular
kg + → Noun
to + Conjunction
> nlp('1-2 kg').debug()
'[1]' - Number, Cardinal
'[to]' - Conjunction
'[2]' - Number, Cardinal
'kg' - Unit, Noun, Singular
> nlp('1-2 kg').has('#NumberRange')
false
> nlp('1-2 kg').match('#NumberRange').text()
""
Issue Analytics
- State:
- Created 4 years ago
- Comments:6 (6 by maintainers)
Top Results From Across the Web
IP Addresses and Services Command Reference for Cisco ...
You can enter up to six addresses, but only one for each command. ... logging logging trap debugging logging 223.255.254.249 vrf vrf1 ...
Read more >Duktape Programmer's Guide
The heap stash is an object visible only from C code. It is associated with the Duktape heap, and allows Duktape/C code to...
Read more >sdmaid/changelogV4.md at master - d4rken - GitHub
Improved: Now displaying more size digits, but only showing both allocated and actual file size if the difference is larger than 5% or...
Read more >Spring RestTemplate - how to enable full debugging/logging ...
Just to complete the example with a full implementation of ClientHttpRequestInterceptor to trace request and response: import java.io.
Read more >Duktape Programmer's Guide - UserManual.wiki
The heap stash is an object visible only from C code. It is associated with the Duktape heap, and allows Duktape/C code to...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
great find. Thanks Jake. Yeah, the logic about keeping existing tags during .replace() changed in v12. Good observation that it got tagged as a NumberRange briefly. got it fixed on dev. And as Dominic said, it should be released this week. cheers
fixed in
v13.0.0