question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

`head/tail` and `word` tokens are not selecting correctly.

See original GitHub issue

Sample Code

const shouldDisableTableUpdate = true;

Assume there is a hat over the u in should

Command Expected Result Actual Result
chuck tail second word urge const should = true; const TableUpdate = true
chuck head second word urge const TableUpdate = true; const should = true

Essentially the result of using a word target and tail and head are reversed from what I expected in this situation.

Workarounds

  • Defining the range second past last word urge or second past first word urge
  • Using the opposite command from what you want (not really recommended as it promotes bad muscle memory)

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:10 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
pokeycommented, Oct 24, 2022

I believe this one is superseded by #972, right?

1reaction
pokeycommented, Sep 12, 2022

Yeah let’s discuss at the next meetup; I think we’re reaching the limits of text 😊

Read more comments on GitHub >

github_iconTop Results From Across the Web

`head/tail` and `word` tokens are not selecting correctly. - PullAnswer
Workarounds · Defining the range second past last word urge or second past first word urge · Using the opposite command from what...
Read more >
alibi/test_anchor_text.py at master · SeldonIO/alibi · GitHub
select all words without punctuation. words = []. for i, token in enumerate(tokens):. if (not lang_model.is_subword_prefix(token)) and \.
Read more >
Token and Phrase Spell Correction Job | Fusion 4.1
This job extracts tail tokens (one word) and phrases (two wo. ... You do not need to run a Head/Tail Analysis job. ......
Read more >
Tokenization - Stanford NLP Group
These tokens are often loosely referred to as terms or words, ... The major question of the tokenization phase is what are the...
Read more >
You have 100 coins laying flat on a table, each with a ... - Quora
I mean why 10 and 90 number and not something else? In short: for any value of heads and tail, if we select...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found