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

Other Useful Business Software
Fully Managed MySQL, PostgreSQL, and SQL Server Icon
Fully Managed MySQL, PostgreSQL, and SQL Server

Automatic backups, patching, replication, and failover. Focus on your app, not your database.

Cloud SQL handles your database ops end to end, so you can focus on your app.
Try 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