few_shot_examples
=================
.. py:module:: few_shot_examples
Attributes
----------
.. autoapisummary::
few_shot_examples.EXAMPLES_FOR_ENTITY_EXTRACTION
few_shot_examples.EXAMPLES_FOR_TRIPLES_EXTRACTION
few_shot_examples.EXAMPLES_FOR_TYPE_ASSERTION
few_shot_examples.EXAMPLES_FOR_TYPE_GENERATION
few_shot_examples.EXAMPLES_FOR_LITERAL_EXTRACTION
few_shot_examples.EXAMPLES_FOR_SPL_TRIPLES_EXTRACTION
Module Contents
---------------
.. py:data:: EXAMPLES_FOR_ENTITY_EXTRACTION
:value: Multiline-String
.. raw:: html
Show Value
.. code-block:: python
"""
Example 1:
text:
The Verdantis's Central Institution is scheduled to meet on Monday and Thursday, with the institution planning to release its latest policy decision on Thursday at 1:30 p.m. PDT, followed by a press conference where Central Institution Chair Martin Smith will take questions. Investors expect the Market Strategy Committee to hold its benchmark interest rate steady in a range of 3.5%-3.75%.
output entities:
[CENTRAL INSTITUTION, MARTIN SMITH, MARKET STRATEGY COMMITTEE]
######################
Example 2:
text:
Five Aurelians jailed for 8 years in Firuzabad and widely regarded as hostages are on their way home to Aurelia.
The swap orchestrated by Quintara was finalized when $8bn of Firuzi funds were transferred to financial institutions in Krohaara, the capital of Quintara.
The exchange initiated in Firuzabad's capital, Tiruzia, led to the four men and one woman, who are also Firuzi nationals, boarding a chartered flight to Krohaara.
They were welcomed by senior Aurelian officials and are now on their way to Aurelia's capital, Cashion.
The Aurelians include 39-year-old businessman Samuel Namara, who has been held in Tiruzia's Alhamia Prison, as well as journalist Durke Bataglani, 59, and environmentalist Meggie Tazbah, 53, who also holds Bratinas nationality.
output entities:
[FIRUZABAD, AURELIA, QUINTARA, TIRUZIA, KROHAARA, CASHION, SAMUEL NAMARA, ALHAMIA PRISON, DURKE BATAGLANI, MEGGIE TAZBAH]
"""
.. raw:: html
.. py:data:: EXAMPLES_FOR_TRIPLES_EXTRACTION
:value: Multiline-String
.. raw:: html
Show Value
.. code-block:: python
"""
Example 1:
entities: [CENTRAL INSTITUTION, MARTIN SMITH, MARKET STRATEGY COMMITTEE]
text:
The Verdantis's Central Institution is scheduled to meet on Monday and Thursday, with the institution planning to release its latest policy decision on Thursday at 1:30 p.m. PDT, followed by a press conference where Central Institution Chair Martin Smith will take questions. Investors expect the Market Strategy Committee to hold its benchmark interest rate steady in a range of 3.5%-3.75%.
output triples:
[(MARTIN SMITH, CHAIR OF, CENTRAL INSTITUTION)]
######################
Example 2:
entities: [FIRUZABAD, AURELIA, QUINTARA, TIRUZIA, KROHAARA, CASHION, SAMUEL NAMARA, ALHAMIA PRISON, DURKE BATAGLANI, MEGGIE TAZBAH]
text:
Five Aurelians jailed for 8 years in Firuzabad and widely regarded as hostages are on their way home to Aurelia.
The swap orchestrated by Quintara was finalized when $8bn of Firuzi funds were transferred to financial institutions in Krohaara, the capital of Quintara.
The exchange initiated in Firuzabad's capital, Tiruzia, led to the four men and one woman, who are also Firuzi nationals, boarding a chartered flight to Krohaara.
They were welcomed by senior Aurelian officials and are now on their way to Aurelia's capital, Cashion.
The Aurelians include 39-year-old businessman Samuel Namara, who has been held in Tiruzia's Alhamia Prison, as well as journalist Durke Bataglani, 59, and environmentalist Meggie Tazbah, 53, who also holds Bratinas nationality.
output triples:
[(FIRUZABAD, NEGOTIATED WITH, AURELIA), (QUINTARA, BROKERED EXCHANGE, AURELIA), (QUINTARA, BROKERED EXCHANGE, FIRUZABAD), (SAMUEL NAMARA, DETAINED AT, ALHAMIA PRISON), (SAMUEL NAMARA, EXCHANGED TOGETHER WITH, MEGGIE TAZBAH), (SAMUEL NAMARA, EXCHANGED TOGETHER WITH, DURKE BATAGLANI), (MEGGIE TAZBAH, EXCHANGED TOGETHER WITH, DURKE BATAGLANI), (SAMUEL NAMARA, HOSTAGE IN, FIRUZABAD), (MEGGIE TAZBAH, HOSTAGE IN, FIRUZABAD), (DURKE BATAGLANI, HOSTAGE IN, FIRUZABAD)]
"""
.. raw:: html
.. py:data:: EXAMPLES_FOR_TYPE_ASSERTION
:value: Multiline-String
.. raw:: html
Show Value
.. code-block:: python
"""
Example 1:
entities: [CENTRAL INSTITUTION, MARTIN SMITH, MARKET STRATEGY COMMITTEE]
entity_types: [ORGANIZATION, PERSON]
text:
The Verdantis's Central Institution is scheduled to meet on Monday and Thursday, with the institution planning to release its latest policy decision on Thursday at 1:30 p.m. PDT, followed by a press conference where Central Institution Chair Martin Smith will take questions. Investors expect the Market Strategy Committee to hold its benchmark interest rate steady in a range of 3.5%-3.75%.
output pairs:
[(CENTRAL INSTITUTION, ORGANIZATION), (MARTIN SMITH, PERSON), (MARKET STRATEGY COMMITTEE, ORGANIZATION)]
######################
Example 2:
entities: [FIRUZABAD, AURELIA, QUINTARA, TIRUZIA, KROHAARA, CASHION, SAMUEL NAMARA, ALHAMIA PRISON, DURKE BATAGLANI, MEGGIE TAZBAH]
entity_types: [ORGANIZATION, GEO, PERSON]
text:
Five Aurelians jailed for 8 years in Firuzabad and widely regarded as hostages are on their way home to Aurelia.
The swap orchestrated by Quintara was finalized when $8bn of Firuzi funds were transferred to financial institutions in Krohaara, the capital of Quintara.
The exchange initiated in Firuzabad's capital, Tiruzia, led to the four men and one woman, who are also Firuzi nationals, boarding a chartered flight to Krohaara.
They were welcomed by senior Aurelian officials and are now on their way to Aurelia's capital, Cashion.
The Aurelians include 39-year-old businessman Samuel Namara, who has been held in Tiruzia's Alhamia Prison, as well as journalist Durke Bataglani, 59, and environmentalist Meggie Tazbah, 53, who also holds Bratinas nationality.
output pairs:
[(FIRUZABAD, GEO), (AURELIA, GEO), (QUINTARA, GEO), (TIRUZIA, GEO), (KROHAARA, GEO), (CASHION, GEO), (SAMUEL NAMARA, PERSON), (ALHAMIA PRISON, GEO), (DURKE BATAGLANI, PERSON), (MEGGIE TAZBAH, PERSON)]
"""
.. raw:: html
.. py:data:: EXAMPLES_FOR_TYPE_GENERATION
:value: Multiline-String
.. raw:: html
Show Value
.. code-block:: python
"""
Example 1:
entities: [CENTRAL INSTITUTION, MARTIN SMITH, MARKET STRATEGY COMMITTEE]
text:
The Verdantis's Central Institution is scheduled to meet on Monday and Thursday, with the institution planning to release its latest policy decision on Thursday at 1:30 p.m. PDT, followed by a press conference where Central Institution Chair Martin Smith will take questions. Investors expect the Market Strategy Committee to hold its benchmark interest rate steady in a range of 3.5%-3.75%.
output pairs:
[(CENTRAL INSTITUTION, ORGANIZATION), (MARTIN SMITH, PERSON), (MARKET STRATEGY COMMITTEE, ORGANIZATION)]
######################
Example 2:
entities: [FIRUZABAD, AURELIA, QUINTARA, TIRUZIA, KROHAARA, CASHION, SAMUEL NAMARA, ALHAMIA PRISON, DURKE BATAGLANI, MEGGIE TAZBAH]
text:
Five Aurelians jailed for 8 years in Firuzabad and widely regarded as hostages are on their way home to Aurelia.
The swap orchestrated by Quintara was finalized when $8bn of Firuzi funds were transferred to financial institutions in Krohaara, the capital of Quintara.
The exchange initiated in Firuzabad's capital, Tiruzia, led to the four men and one woman, who are also Firuzi nationals, boarding a chartered flight to Krohaara.
They were welcomed by senior Aurelian officials and are now on their way to Aurelia's capital, Cashion.
The Aurelians include 39-year-old businessman Samuel Namara, who has been held in Tiruzia's Alhamia Prison, as well as journalist Durke Bataglani, 59, and environmentalist Meggie Tazbah, 53, who also holds Bratinas nationality.
output pairs:
[(FIRUZABAD, GEO), (AURELIA, GEO), (QUINTARA, GEO), (TIRUZIA, GEO), (KROHAARA, GEO), (CASHION, GEO), (SAMUEL NAMARA, PERSON), (ALHAMIA PRISON, GEO), (DURKE BATAGLANI, PERSON), (MEGGIE TAZBAH, PERSON)]
"""
.. raw:: html
.. py:data:: EXAMPLES_FOR_LITERAL_EXTRACTION
:value: Multiline-String
.. raw:: html
Show Value
.. code-block:: python
"""
Example 1:
entities: [CENTRAL INSTITUTION, MARTIN SMITH, MARKET STRATEGY COMMITTEE]
text:
The Verdantis's Central Institution is scheduled to meet on Monday and Thursday, with the institution planning to release its latest policy decision on Thursday at 1:30 p.m. PDT, followed by a press conference where Central Institution Chair Martin Smith will take questions. Investors expect the Market Strategy Committee to hold its benchmark interest rate steady in a range of 3.5%-3.75%.
output triples:
[THURSDAY AT 1:30 P.M. PDT, 3.5%-3.75%]
######################
Example 2:
entities: [FIRUZABAD, AURELIA, QUINTARA, TIRUZIA, KROHAARA, CASHION, SAMUEL NAMARA, ALHAMIA PRISON, DURKE BATAGLANI, MEGGIE TAZBAH]
text:
Five Aurelians jailed for 8 years in Firuzabad and widely regarded as hostages are on their way home to Aurelia.
The swap orchestrated by Quintara was finalized when $8bn of Firuzi funds were transferred to financial institutions in Krohaara, the capital of Quintara.
The exchange initiated in Firuzabad's capital, Tiruzia, led to the four men and one woman, who are also Firuzi nationals, boarding a chartered flight to Krohaara.
They were welcomed by senior Aurelian officials and are now on their way to Aurelia's capital, Cashion.
The Aurelians include 39-year-old businessman Samuel Namara, who has been held in Tiruzia's Alhamia Prison, as well as journalist Durke Bataglani, 59, and environmentalist Meggie Tazbah, 53, who also holds Bratinas nationality.
output triples:
[39, 59, 53]
"""
.. raw:: html
.. py:data:: EXAMPLES_FOR_SPL_TRIPLES_EXTRACTION
:value: Multiline-String
.. raw:: html
Show Value
.. code-block:: python
"""
Example 1:
entities: [CENTRAL INSTITUTION, MARTIN SMITH, MARKET STRATEGY COMMITTEE]
numeric_literals: [THURSDAY AT 1:30 P.M. PDT, 3.5%-3.75%]
text:
The Verdantis's Central Institution is scheduled to meet on Monday and Thursday, with the institution planning to release its latest policy decision on Thursday at 1:30 p.m. PDT, followed by a press conference where Central Institution Chair Martin Smith will take questions. Investors expect the Market Strategy Committee to hold its benchmark interest rate steady in a range of 3.5%-3.75%.
output triples:
[(CENTRAL INSTITUTION, RELEASE DECISION, THURSDAY AT 1:30 P.M. PDT), (MARKET STRATEGY COMMITTEE, EXPECTED INTEREST RATE, 3.5%-3.75%)]
######################
Example 2:
entities: [FIRUZABAD, AURELIA, QUINTARA, TIRUZIA, KROHAARA, CASHION, SAMUEL NAMARA, ALHAMIA PRISON, DURKE BATAGLANI, MEGGIE TAZBAH]
numeric_literals: [39, 59, 53]
text:
Five Aurelians jailed for 8 years in Firuzabad and widely regarded as hostages are on their way home to Aurelia.
The swap orchestrated by Quintara was finalized when $8bn of Firuzi funds were transferred to financial institutions in Krohaara, the capital of Quintara.
The exchange initiated in Firuzabad's capital, Tiruzia, led to the four men and one woman, who are also Firuzi nationals, boarding a chartered flight to Krohaara.
They were welcomed by senior Aurelian officials and are now on their way to Aurelia's capital, Cashion.
The Aurelians include 39-year-old businessman Samuel Namara, who has been held in Tiruzia's Alhamia Prison, as well as journalist Durke Bataglani, 59, and environmentalist Meggie Tazbah, 53, who also holds Bratinas nationality.
output triples:
[(SAMUEL NAMARA, HAS AGE, 39), (DURKE BATAGLANI, HAS AGE, 59), (MEGGIE TAZBAH, HAS AGE, 53)]
"""
.. raw:: html