Is it possible to extract specific words from a sentence in Hindi/Marathi? I have seen the different options to extract words from sentences in English but when I wanted to know if its possible to do the same thing in Hindi or Marathi
eg: टोमॅटो बेचना है
where the word at position 1 is TOMATO and it needs to be extracted i.e. extraction of product name from a sentence.
Any help will be appreciated.
Based on your comment I understand that you want to identify a particular syntactic category of words, for instance nouns. The task which identifies these categories is called Part Of Speech (POS) tagging.
I'm not familiar with any specific resource for Hindi or Marathi but there are probably some software that you can use. From a quick search I found a few links below:

General resources for Indian languages
A POS tagger for Hindi
Another more recent POS tagger for Hindi