From 19f27cc6ef90e297b1ef770eeb30d475a0dda5e6 Mon Sep 17 00:00:00 2001 From: Ines Montani Date: Fri, 25 Nov 2016 15:48:48 +0100 Subject: [PATCH 1/2] Use consistent entity tables across docs --- website/docs/api/annotation.jade | 26 +++++++++++--------------- 1 file changed, 11 insertions(+), 15 deletions(-) diff --git a/website/docs/api/annotation.jade b/website/docs/api/annotation.jade index 1a6273c68..2aea222ca 100644 --- a/website/docs/api/annotation.jade +++ b/website/docs/api/annotation.jade @@ -71,18 +71,18 @@ p +h(2, "named-entities") Named Entity Recognition -+table(["Entity Type", "Description"]) ++table([ "Type", "Description" ]) +row +cell #[code PERSON] - +cell People, including fictional. + +cell People, including fictional +row +cell #[code NORP] - +cell Nationalities or religious or political groups. + +cell Nationalities or religious or political groups +row - +cell #[code FAC] - +cell Facilities, such as buildings, airports, highways, bridges, etc. + +cell #[code FACILITY] + +cell Buildings, airports, highways, bridges, etc. +row +cell #[code ORG] @@ -90,15 +90,15 @@ p +row +cell #[code GPE] - +cell Countries, cities, states. + +cell Countries, cities, states +row +cell #[code LOC] - +cell Non-GPE locations, mountain ranges, bodies of water. + +cell Non-GPE locations, mountain ranges, bodies of water +row +cell #[code PRODUCT] - +cell Vehicles, weapons, foods, etc. (Not services) + +cell Objects, vehicles, foods, etc. (not services) +row +cell #[code EVENT] @@ -108,17 +108,13 @@ p +cell #[code WORK_OF_ART] +cell Titles of books, songs, etc. - +row - +cell #[code LAW] - +cell Named documents made into laws - +row +cell #[code LANGUAGE] +cell Any named language p The following values are also annotated in a style similar to names: -+table(["Entity Type", "Description"]) ++table([ "Type", "Description" ]) +row +cell #[code DATE] +cell Absolute or relative dates or periods @@ -129,7 +125,7 @@ p The following values are also annotated in a style similar to names: +row +cell #[code PERCENT] - +cell Percentage (including “%”) + +cell Percentage, including "%" +row +cell #[code MONEY] @@ -141,7 +137,7 @@ p The following values are also annotated in a style similar to names: +row +cell #[code ORDINAL] - +cell "first", "second" + +cell "first", "second", etc. +row +cell #[code CARDINAL] From ada007cb73e77c04a93fa998e34527b8ad48b815 Mon Sep 17 00:00:00 2001 From: Ines Montani Date: Fri, 25 Nov 2016 15:53:40 +0100 Subject: [PATCH 2/2] Fix formatting for consistency --- website/docs/api/annotation.jade | 24 ++++++++--------- website/docs/usage/entity-recognition.jade | 30 +++++++++++----------- 2 files changed, 27 insertions(+), 27 deletions(-) diff --git a/website/docs/api/annotation.jade b/website/docs/api/annotation.jade index 2aea222ca..1875c3882 100644 --- a/website/docs/api/annotation.jade +++ b/website/docs/api/annotation.jade @@ -74,11 +74,11 @@ p +table([ "Type", "Description" ]) +row +cell #[code PERSON] - +cell People, including fictional + +cell People, including fictional. +row +cell #[code NORP] - +cell Nationalities or religious or political groups + +cell Nationalities or religious or political groups. +row +cell #[code FACILITY] @@ -90,15 +90,15 @@ p +row +cell #[code GPE] - +cell Countries, cities, states + +cell Countries, cities, states. +row +cell #[code LOC] - +cell Non-GPE locations, mountain ranges, bodies of water + +cell Non-GPE locations, mountain ranges, bodies of water. +row +cell #[code PRODUCT] - +cell Objects, vehicles, foods, etc. (not services) + +cell Objects, vehicles, foods, etc. (Not services.) +row +cell #[code EVENT] @@ -110,30 +110,30 @@ p +row +cell #[code LANGUAGE] - +cell Any named language + +cell Any named language. p The following values are also annotated in a style similar to names: +table([ "Type", "Description" ]) +row +cell #[code DATE] - +cell Absolute or relative dates or periods + +cell Absolute or relative dates or periods. +row +cell #[code TIME] - +cell Times smaller than a day + +cell Times smaller than a day. +row +cell #[code PERCENT] - +cell Percentage, including "%" + +cell Percentage, including "%". +row +cell #[code MONEY] - +cell Monetary values, including unit + +cell Monetary values, including unit. +row +cell #[code QUANTITY] - +cell Measurements, as of weight or distance + +cell Measurements, as of weight or distance. +row +cell #[code ORDINAL] @@ -141,4 +141,4 @@ p The following values are also annotated in a style similar to names: +row +cell #[code CARDINAL] - +cell Numerals that do not fall under another type + +cell Numerals that do not fall under another type. diff --git a/website/docs/usage/entity-recognition.jade b/website/docs/usage/entity-recognition.jade index f8045778e..d0e642759 100644 --- a/website/docs/usage/entity-recognition.jade +++ b/website/docs/usage/entity-recognition.jade @@ -124,11 +124,11 @@ p +table([ "Type", "Description" ]) +row +cell #[code PERSON] - +cell People, including fictional + +cell People, including fictional. +row +cell #[code NORP] - +cell Nationalities or religious or political groups + +cell Nationalities or religious or political groups. +row +cell #[code FACILITY] @@ -140,15 +140,15 @@ p +row +cell #[code GPE] - +cell Countries, cities, states + +cell Countries, cities, states. +row +cell #[code LOC] - +cell Non-GPE locations, mountain ranges, bodies of water + +cell Non-GPE locations, mountain ranges, bodies of water. +row +cell #[code PRODUCT] - +cell Objects, vehicles, foods, etc. (not services) + +cell Objects, vehicles, foods, etc. (Not services.) +row +cell #[code EVENT] @@ -167,23 +167,23 @@ p +table([ "Type", "Description" ]) +row +cell #[code DATE] - +cell Absolute or relative dates or periods + +cell Absolute or relative dates or periods. +row +cell #[code TIME] - +cell Times smaller than a day + +cell Times smaller than a day. +row +cell #[code PERCENT] - +cell Percentage, including "%" + +cell Percentage, including "%". +row +cell #[code MONEY] - +cell Monetary values, including unit + +cell Monetary values, including unit. +row +cell #[code QUANTITY] - +cell Measurements, as of weight or distance + +cell Measurements, as of weight or distance. +row +cell #[code ORDINAL] @@ -191,7 +191,7 @@ p +row +cell #[code CARDINAL] - +cell Numerals that do not fall under another type + +cell Numerals that do not fall under another type. +aside("Install") | The #[+api("load") spacy.load()] function configures a pipeline that @@ -250,19 +250,19 @@ p +table([ "Tag", "Description" ]) +row +cell #[code #[span.u-color-theme B] EGIN] - +cell The first token of a multi-token entity + +cell The first token of a multi-token entity. +row +cell #[code #[span.u-color-theme I] N] - +cell An inner token of a multi-token entity + +cell An inner token of a multi-token entity. +row +cell #[code #[span.u-color-theme L] AST] - +cell The final token of a multi-token entity + +cell The final token of a multi-token entity. +row +cell #[code #[span.u-color-theme U] NIT] - +cell A single-token entity + +cell A single-token entity. +row +cell #[code #[span.u-color-theme O] UT]