Low weight Natural Language Processing

⚓ Rust    📅 2025-12-16    👤 surdeus    👁️ 1      

surdeus

Wanted to experiment with using a little bit of natural language processing to have more fluid interactions with npc in a text game, so farm my idea is to take the player text and parse it to convert in a set of general tokens and then match sequences of said tokens to prewritten answers or actions. so "how much this sword costs?" might become
[Question::Quantity, Local, Uncategorized(sword), Price]
an be matched with an answer for the price of the sword
i am curious what's the general consensus on this approach and if you have any advice to make sure it can stay performant even with many possible therms or answers

2 posts - 2 participants

Read full topic

🏷️ Rust_feed