Expand contractions before applying tense transformations? (v7)
See original GitHub issue(Sorry if I’m reporting this as you’re working on it - perhaps I should wait until v7 is released)
These two examples illustrate the problem:
nlp("I'm going to the shops").sentences().toPastTense().out("text") // --> "I'm went to the shops"
nlp("I am going to the shops").sentences().toPastTense().out("text") // --> "I was going to the shops"
Perhaps expand tense-based contractions (e.g. with words “am”, “will”) before processing (or something like that)?
Edit: Another thing: nlp('london is calling').sentences().toNegative().out("text")
throws: Uncaught TypeError: this.term.insertAfter is not a function
- guess this is still being worked on?
Issue Analytics
- State:
- Created 7 years ago
- Comments:5 (4 by maintainers)
Top Results From Across the Web
NLP - Expand contractions in Text Processing - GeeksforGeeks
Code 1: For expanding contractions using contractions library ... Removing contractions before forming word vectors helps in dimensionality ...
Read more >SAMHSA TIP 35 Enhancing Motivation for Change in ...
Motivation relates to the probability that a person will enter into, continue, and adhere to a specific change strategy. Although much progress has...
Read more >Contractions of English Semi-Modals: The Emancipating ...
2-3: Use of contracted semi-modals in the BNC (from Krug 2000:175) ... hand, got is the past tense form of get, and therefore...
Read more >Effects of electrical stimulation on skin surface - PMC - NCBI
In vivo and in vitro experiments have also proven that it induces epithelialization and promotes wound contractions. Positive polarity will ...
Read more >Exercises for Lumbar Instability - Physiopedia
Develop the skill of an independent contraction of the local muscle ... very slow and controlled weightbearing exercise to enhance the feedback mechanisms ......
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
hey, this works now too: 🎆
wee! v10.4.0
this one’s fine now though: