Git Product home page Git Product logo

food-not-food's Introduction

I write and make videos about machine learning, health and life.

My writing is like the voice in your head found a typewriter.

My videos are like a spartan warrior leanred to code.

I'm currently working on Nutrify an app where you can take a photo of food and learn about it.

I teach machine learning and deep learning on Zero to Mastery.

I've authored three books:

  • Charlie Walks - a sci-fi/romance/philosophical novel about a machine learning engineer who wants to be a writer.
  • learntensorflow.io - a 50,000+ word online (and free) book that teaches you TensorFlow and Deep Learning in a beginner-friendly, code-first way.
  • learnpytorch.io - the internet's most beginner-friendly way to learn PyTorch for deep learning.

And many people have found my posts on machine learning helpful:

Find me elsewhere online:

food-not-food's People

Contributors

mitanshushaba avatar mrdbourke avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

food-not-food's Issues

Function to find the word related to food

This is a helper function to find the word is food related or not :

def hot_or_not(word) :
  syns = wn.synsets(word, pos = wn.NOUN)
  f=0
  f_x = 0
  forbidden = ['artifact', 'object', 'animal', 'person']
  for syn in syns:
    print(syn, syn.lexname())
    for f in forbidden :
      if f in syn.lexname():
        f_x=1
        break
    if f_x == 1 :
      break
    if 'food' not in syn.lexname():
      f=1
    if 'food' in syn.lexname():
      f = 0
      break
  if f == 1 or f_x == 1:
    print('NOT')
  else :
    print('HOT')

If I use the word apple for the this I get the following output:

Synset('apple.n.01') noun.food
HOT

If I use iceberg even though it has food in it it will give this output:

Synset('iceberg.n.01') noun.object
NOT

Here is the ultimate test

This is not an issue. Sorry, there is no discussion page.

But here is the ultimate test for food-not-food.

image

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.