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
EBizCharge Payment Platform for Accounts Receivable Icon
EBizCharge Payment Platform for Accounts Receivable

Getting paid has never been easier.

Don’t let unpaid invoices limit your business’s growth. EBizCharge plugs directly into the tools your business already uses to speed up payment collection.
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