Add docs on filtering overlapping spans for merging (resolves [ci skip]
@@ -324,7 +324,9 @@ class Errors(object):
E101 = ("NODE_NAME should be a new node and NBOR_NAME should already have "
"have been declared in previous edges.")
E102 = ("Can't merge non-disjoint spans. '{token}' is already part of "
- "tokens to merge.")
+ "tokens to merge. If you want to find the longest non-overlapping "
+ "spans, you can use the util.filter_spans helper:\n"
+ "https://spacy.io/api/top-level#util.filter_spans")
E103 = ("Trying to set conflicting doc.ents: '{span1}' and '{span2}'. A "
"token can only be part of one entity, so make sure the entities "
"you're setting don't overlap.")
