Go package for text annotation. There are two parts to anno, the first is a series of Finder functions that look for interesting articles (which it calls `Notes`) inside the text, returning a slice of Note structs. The second is the Expander, which replaces the text in each Note with something else, like the HTML for a link or something. It tells you the bytes that it found, the `Start` index and a string describing the kind of `Note`. The kind is useful for when you run pass `Finder` objects to the `FindMany` or `FindManyString` functions. Since most of the built-in finders operate on a per field basis (word by word), it made sense to add a special helper called `FieldFunc` that generates`FinderFunc` functions for us, and takes away the repetitive task of breaking the string up, and iterating over each word.

Features

  • Go package for text annotation
  • Simple interface
  • Very extensible
  • Looks nice in JSON (good for APIs)
  • Emoji support lives in its own package due to the external dependency
  • You can expand (replace) occurances of the notes

Project Samples

Project Activity

See All Activity >

Categories

Text Annotation

License

MIT License

Follow anno

anno Web Site

You Might Also Like
Gen AI apps are built with MongoDB Atlas Icon
Gen AI apps are built with MongoDB Atlas

The database for AI-powered applications.

MongoDB Atlas is the developer-friendly database used to build, scale, and run gen AI and LLM-powered apps—without needing a separate vector database. Atlas offers built-in vector search, global availability across 115+ regions, and flexible document modeling. Start building AI apps faster, all in one place.
Start Free
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of anno!

Additional Project Details

Programming Language

Go

Related Categories

Go Text Annotation Tool

Registered

2023-05-23