How to create a linter with tensorflow.js?

hello,

So, I am working on a web app where university students can go and look for scholarships. we currently have a regex-based linter that detects missing scholarship requirements. We are trying to build a machine learning model to improve the performance. Since the web app is written in JavaScript (ReactJS) I am trying to build it with tensorflow.js.

can you please give me pointers on how to go about building this model? are there pre trained models I can use to implement a linter? thanks

1 Like

Hi @manifolder ,

Apologies for the delay in my response. If you’re trying to implement a linter for each field of your form, then using a regex-based linter is a good approach. There are plenty of regex libraries available in React.js that can help you validate user input details.

While there might not be a specific pre-trained model for linting in TFJS, you could potentially adapt a model trained for a similar task, such as text classification (Kaggle). However, this would require significant customization.

Additionally, if you want to create a custom model, you can follow the guide to train it on a dataset of valid and invalid inputs tailored to your specific linting requirements.

Let me know if it helps.

Thank You!!