344 karma · joined May 15, 2021
This is it. You’re trading your time for money, so the company can make more money. That’s it.
> Yoav Goldberg is a computer science professor and researcher in the field of natural language processing (NLP). He is currently a professor at Bar-Ilan University in Israel and a senior researcher at the Allen Institute for Artificial Intelligence (AI2).
Professor Goldberg has made significant contributions to the NLP field, particularly in the areas of syntactic parsing, word embeddings, and multi-task learning. He has published numerous papers in top-tier conferences and journals, and his work has been widely cited by other researchers.
Note that this implementation is just an example and may not be suitable for all use cases. For example, it does not handle negative indices or slice operations. You may need to modify the implementation to suit your specific needs.
class InfiniteArray: def __init__(self, generator_function): self.generator_function = generator_function self.items = [] self.index = 0
def __getitem__(self, index):
# if the index is out of bounds, generate more items
while index >= len(self.items):
self.items.append(self.generator_function())
return self.items[index]
# example generator function that generates capital cities
def world_capital_cities():
# list of capital cities
capital_cities = ['Paris', 'London', 'Tokyo', 'New Delhi', 'Beijing']
# generate capital cities in a cyclic manner
for i in itertools.cycle(range(len(capital_cities))):
yield capital_cities[i]# create an infinite array object with the world_capital_cities generator function capital_cities_array = InfiniteArray(world_capital_cities)
# access the 10th item in the array print(capital_cities_array[10]) # prints 'New Delhi'
# example generator function that generates concatenation of two lists def soft_sweet(): # list of soft items soft = ['cloud', 'pillow', 'fluffy'] # list of sweet items sweet = ['ice cream', 'candy', 'bunny'] # generate concatenation of soft and sweet in a cyclic manner for i in itertools.cycle(range(len(soft))): yield soft[i] + ' ' + sweet[i]
# create an infinite array object with the soft_sweet generator function soft_sweet_array = InfiniteArray(soft_sweet)
# access the 5th item in the array print(soft_sweet_array[5]) # prints 'pillow candy'
> was an American fraudster and financier who ran the largest Ponzi scheme in history, worth about $64.8 billion.
Build out your portfolio so you have projects that you can speak to and show your tech depth.
FWIW, I do AI backend at FAANG and mentor as tech lead.