Comments

You must log in or register to comment.

LAcuber t1_j83jx67 wrote

Very neat. Though quite ironic given that StackOverflow explicitly bans ChatGPT answers!

18

bengouk t1_j83s20s wrote

Cool. But whats with that answer though!?

The tokenize_sentences function just calls the nltk word_tokenize with same parameters and returns result? Why not just call the nltk function directly??

1

1h8fulkat t1_j84os6q wrote

ChatGPT's response...because I don't think it's ironic:

> The situation you described could be seen as either humorous or paradoxical, but not necessarily ironic. > > Irony is a figure of speech that involves a contrast between what is expected and what actually occurs, often with a humorous or satirical intent. In the case of a company banning chatbots and someone inventing an extension to bypass that ban, there might not be a clear contrast between expectations and reality, so it wouldn't be considered irony. > > However, the situation could be described as paradoxical, which refers to a statement or situation that seems self-contradictory or absurd. The idea of a company banning chatbots but someone finding a way to bring them back could be seen as paradoxical. > > > Another word that could be used to describe the situation is humorous, as it could be seen as a humorous take on the futility of trying to ban technology. <-- now THIS I agree with...

9

the_aligator6 t1_j86pg30 wrote

Encapsulation of external dependency. If the API changes to nltk, you can maintain the same interface and only make the change in one place. If you want to replace nltk, you only have to make the change in one place

2