state jurisdiction
This commit is contained in:
parent
c2c7bf069b
commit
8bede28e3d
1
.ipynb_checkpoints/config-checkpoint.txt
Normal file
1
.ipynb_checkpoints/config-checkpoint.txt
Normal file
@ -0,0 +1 @@
|
|||||||
|
--metric MultiLabel-F1:uN<F1(UC)> --metric MultiLabel-F1:N<F1>P<3> --metric MultiLabel-F0:uN<P(UC)>P<3> --metric MultiLabel-F9999:uN<R(UC)>P<3> --metric Accuracy:uSN<Accuracy>P<2> --metric Mean/MultiLabel-F1:uN<Mean-F1>P<3> --metric MultiLabel-{F1:N<F1>,F0:N<P>P<3>,F9999:N<R>P<3>}{m<effective_date=\S+\s*>N<date>P<2>,m<party=\S+\s*>N<party>P<2>,m<jurisdiction=\S+\s*>N<juris>P<2>,m<term=\S+\s*>N<term>P<2>}u --precision 5 -B 200 --in-header in-header.tsv -%
|
122
.ipynb_checkpoints/run-checkpoint.ipynb
Normal file
122
.ipynb_checkpoints/run-checkpoint.ipynb
Normal file
@ -0,0 +1,122 @@
|
|||||||
|
{
|
||||||
|
"cells": [
|
||||||
|
{
|
||||||
|
"cell_type": "code",
|
||||||
|
"execution_count": 17,
|
||||||
|
"id": "8b07c9a5-e5cf-4cf9-a6d9-e784eb109fef",
|
||||||
|
"metadata": {},
|
||||||
|
"outputs": [],
|
||||||
|
"source": [
|
||||||
|
"import re"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"cell_type": "code",
|
||||||
|
"execution_count": 5,
|
||||||
|
"id": "fce94c21-6792-4938-bf2c-3f46ecf2f954",
|
||||||
|
"metadata": {},
|
||||||
|
"outputs": [],
|
||||||
|
"source": [
|
||||||
|
"states = ['Alabama', 'Alaska', 'Arizona', 'Arkansas', 'California', 'Colorado', 'Connecticut', 'Delaware', 'Florida', 'Georgia', \n",
|
||||||
|
" 'Hawaii', 'Idaho', 'Illinois', 'Indiana', 'Iowa', 'Kansas', 'Kentucky', 'Louisiana', 'Maine', 'Maryland', \n",
|
||||||
|
" 'Massachusetts', 'Michigan', 'Minnesota', 'Mississippi', 'Missouri', 'Montana', 'Nebraska', 'Nevada', 'New Hampshire', 'New Jersey', \n",
|
||||||
|
" 'New Mexico', 'New York', 'North Carolina', 'North Dakota', 'Ohio', 'Oklahoma', 'Oregon', 'Pennsylvania', 'Rhode Island', 'South Carolina', \n",
|
||||||
|
" 'South Dakota', 'Tennessee', 'Texas', 'Utah', 'Vermont', 'Virginia', 'Washington', 'West Virginia', 'Wisconsin', 'Wyoming']"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"cell_type": "code",
|
||||||
|
"execution_count": 6,
|
||||||
|
"id": "eb1815f2-1876-4437-833a-ff22de81685e",
|
||||||
|
"metadata": {},
|
||||||
|
"outputs": [],
|
||||||
|
"source": [
|
||||||
|
"def counter(text_in, query):\n",
|
||||||
|
" pattern = re.compile(query)\n",
|
||||||
|
" return len(pattern.findall(text_in, re.IGNORECASE))"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"cell_type": "code",
|
||||||
|
"execution_count": 7,
|
||||||
|
"id": "8729062d-87b8-4111-a216-8500334f54b6",
|
||||||
|
"metadata": {},
|
||||||
|
"outputs": [],
|
||||||
|
"source": [
|
||||||
|
"def state_prediction(text_in):\n",
|
||||||
|
" state_dict = {}\n",
|
||||||
|
" for state in states:\n",
|
||||||
|
" state_dict[state.replace(\" \", \"_\")] = counter(text_in, state) \n",
|
||||||
|
" return max(state_dict, key=state_dict.get)"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"cell_type": "code",
|
||||||
|
"execution_count": 20,
|
||||||
|
"id": "ea8069f7-de8e-454c-8eac-9fb7cc0df626",
|
||||||
|
"metadata": {},
|
||||||
|
"outputs": [],
|
||||||
|
"source": [
|
||||||
|
"def jurisdiction(path_in, path_out): \n",
|
||||||
|
" with open(path_in, 'r', encoding='utf8') as file:\n",
|
||||||
|
" lines = file.readlines() \n",
|
||||||
|
" with open(path_out, 'wt')as file_out:\n",
|
||||||
|
" for i in lines:\n",
|
||||||
|
" file_out.write(\"jurisdiction=\"+str(state_prediction(i))+'\\n') \n",
|
||||||
|
" file_out.close()"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"cell_type": "code",
|
||||||
|
"execution_count": 21,
|
||||||
|
"id": "ade45bfb-9eaa-4b2b-bba1-6cfcaf0a9ce6",
|
||||||
|
"metadata": {},
|
||||||
|
"outputs": [],
|
||||||
|
"source": [
|
||||||
|
"jurisdiction('dev-0/in.tsv', 'dev-0/out.tsv')\n",
|
||||||
|
"jurisdiction('train/in.tsv', 'train/out.tsv')\n",
|
||||||
|
"jurisdiction('test-A/in.tsv', 'test-A/out.tsv')"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"cell_type": "code",
|
||||||
|
"execution_count": 22,
|
||||||
|
"id": "594a25a9-a0ce-4de9-82c8-df50a4ecac39",
|
||||||
|
"metadata": {},
|
||||||
|
"outputs": [
|
||||||
|
{
|
||||||
|
"name": "stderr",
|
||||||
|
"output_type": "stream",
|
||||||
|
"text": [
|
||||||
|
"[NbConvertApp] Converting notebook run.ipynb to script\n",
|
||||||
|
"[NbConvertApp] Writing 1634 bytes to run.py\n"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"source": [
|
||||||
|
"!jupyter nbconvert --to script run.ipynb"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"metadata": {
|
||||||
|
"kernelspec": {
|
||||||
|
"display_name": "Python 3 (ipykernel)",
|
||||||
|
"language": "python",
|
||||||
|
"name": "python3"
|
||||||
|
},
|
||||||
|
"language_info": {
|
||||||
|
"codemirror_mode": {
|
||||||
|
"name": "ipython",
|
||||||
|
"version": 3
|
||||||
|
},
|
||||||
|
"file_extension": ".py",
|
||||||
|
"mimetype": "text/x-python",
|
||||||
|
"name": "python",
|
||||||
|
"nbconvert_exporter": "python",
|
||||||
|
"pygments_lexer": "ipython3",
|
||||||
|
"version": "3.9.7"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"nbformat": 4,
|
||||||
|
"nbformat_minor": 5
|
||||||
|
}
|
62
.ipynb_checkpoints/run-checkpoint.py
Normal file
62
.ipynb_checkpoints/run-checkpoint.py
Normal file
@ -0,0 +1,62 @@
|
|||||||
|
#!/usr/bin/env python
|
||||||
|
# coding: utf-8
|
||||||
|
|
||||||
|
# In[17]:
|
||||||
|
|
||||||
|
|
||||||
|
import re
|
||||||
|
|
||||||
|
|
||||||
|
# In[5]:
|
||||||
|
|
||||||
|
|
||||||
|
states = ['Alabama', 'Alaska', 'Arizona', 'Arkansas', 'California', 'Colorado', 'Connecticut', 'Delaware', 'Florida', 'Georgia',
|
||||||
|
'Hawaii', 'Idaho', 'Illinois', 'Indiana', 'Iowa', 'Kansas', 'Kentucky', 'Louisiana', 'Maine', 'Maryland',
|
||||||
|
'Massachusetts', 'Michigan', 'Minnesota', 'Mississippi', 'Missouri', 'Montana', 'Nebraska', 'Nevada', 'New Hampshire', 'New Jersey',
|
||||||
|
'New Mexico', 'New York', 'North Carolina', 'North Dakota', 'Ohio', 'Oklahoma', 'Oregon', 'Pennsylvania', 'Rhode Island', 'South Carolina',
|
||||||
|
'South Dakota', 'Tennessee', 'Texas', 'Utah', 'Vermont', 'Virginia', 'Washington', 'West Virginia', 'Wisconsin', 'Wyoming']
|
||||||
|
|
||||||
|
|
||||||
|
# In[6]:
|
||||||
|
|
||||||
|
|
||||||
|
def counter(text_in, query):
|
||||||
|
pattern = re.compile(query)
|
||||||
|
return len(pattern.findall(text_in, re.IGNORECASE))
|
||||||
|
|
||||||
|
|
||||||
|
# In[7]:
|
||||||
|
|
||||||
|
|
||||||
|
def state_prediction(text_in):
|
||||||
|
state_dict = {}
|
||||||
|
for state in states:
|
||||||
|
state_dict[state.replace(" ", "_")] = counter(text_in, state)
|
||||||
|
return max(state_dict, key=state_dict.get)
|
||||||
|
|
||||||
|
|
||||||
|
# In[20]:
|
||||||
|
|
||||||
|
|
||||||
|
def jurisdiction(path_in, path_out):
|
||||||
|
with open(path_in, 'r', encoding='utf8') as file:
|
||||||
|
lines = file.readlines()
|
||||||
|
with open(path_out, 'wt')as file_out:
|
||||||
|
for i in lines:
|
||||||
|
file_out.write("jurisdiction="+str(state_prediction(i))+'\n')
|
||||||
|
file_out.close()
|
||||||
|
|
||||||
|
|
||||||
|
# In[21]:
|
||||||
|
|
||||||
|
|
||||||
|
jurisdiction('dev-0/in.tsv', 'dev-0/out.tsv')
|
||||||
|
jurisdiction('train/in.tsv', 'train/out.tsv')
|
||||||
|
jurisdiction('test-A/in.tsv', 'test-A/out.tsv')
|
||||||
|
|
||||||
|
|
||||||
|
# In[ ]:
|
||||||
|
|
||||||
|
|
||||||
|
# get_ipython().system('jupyter nbconvert --to script run.ipynb')
|
||||||
|
|
83
dev-0/.ipynb_checkpoints/expected-checkpoint.tsv
Normal file
83
dev-0/.ipynb_checkpoints/expected-checkpoint.tsv
Normal file
@ -0,0 +1,83 @@
|
|||||||
|
effective_date=2014-05-20 jurisdiction=New_York party=Liquidmetal_Technology_Inc. party=Visser_Precision_Cast_LLC term=3_years
|
||||||
|
jurisdiction=New_York party=Oglethorpe_Power_Corporation
|
||||||
|
effective_date=2012-09-04 jurisdiction=Delaware party=Jda_Software_Group_Inc. party=Redprairie_Holding_Inc. term=2_years
|
||||||
|
effective_date=2009-02-23 jurisdiction=Massachusetts party=Nitromed_Inc. party=Kenneth_M._Bate
|
||||||
|
effective_date=2015-03-01 jurisdiction=Delaware party=Auspex_Pharmaceuticals party=Teva_Pharmaceutical_Industries_Ltd. term=3_years
|
||||||
|
effective_date=2012-01-11 jurisdiction=Washington party=Financial_Northwest_Inc. party=Spencer_L._Schneider party=Stilwell_Group
|
||||||
|
effective_date=2009-04-30 jurisdiction=Delaware party=California_Micro_Devices_Corporation party=On_Semiconductor_Corporation term=1_year
|
||||||
|
effective_date=2016-06-22 jurisdiction=New_Jersey party=Nat_Krishnamurti party=Interpace_Diagnostics_Group_Inc.
|
||||||
|
effective_date=2008-03-31 jurisdiction=New_York party=Intercept_Pharmaceuticals_Inc. party=David_Shapiro
|
||||||
|
effective_date=2015-12-11 party=Anadigics_Inc. party=Ii-Vi_Inc.
|
||||||
|
party=Pjm_Interconnection_LLC
|
||||||
|
effective_date=2018-11-15 jurisdiction=Delaware party=Tesaro_Inc. party=Ajinomoto_Althea_Inc. party=Glaxosmithkline_LLC term=2_years
|
||||||
|
jurisdiction=Delaware party=Allergan_Inc. party=Map_Pharmaceuticals_Inc. term=2_years
|
||||||
|
effective_date=2000-05-23 jurisdiction=Delaware party=Udate.Com_Inc. party=Anthony_Dunn
|
||||||
|
jurisdiction=New_York party=Virgin_Mobile_Usa_LLC term=2_years
|
||||||
|
effective_date=2012-01-25 jurisdiction=Massachusetts party=Asahi_Kasei_Corporation party=Zoll_Medical_Corporation term=5_years
|
||||||
|
effective_date=2008-07-31 jurisdiction=Minnesota party=Cogent_Inc. party=3m_Company term=2_years
|
||||||
|
jurisdiction=California party=Penumbra_Inc. term=2_years
|
||||||
|
effective_date=2014-11-25 jurisdiction=New_York party=Aol_Inc. party=Verizon_Corporate_Services_Group_Inc. term=3_years
|
||||||
|
effective_date=2018-10-01 jurisdiction=California party=Cubic_Corporation party=John_D._Thomas term=1_year
|
||||||
|
effective_date=2018-12-28 jurisdiction=Iowa party=Flexsteel_Industries_Inc. party=Jerald_K._Dittmer
|
||||||
|
effective_date=2012-03-31 jurisdiction=California party=Integrated_Device_Technology_Inc. party=Plx_Technology_Inc. term=1_year
|
||||||
|
jurisdiction=Virginia party=Bruce_L._Caswell party=Maximus_Inc. term=3_years
|
||||||
|
effective_date=2004-10-11 jurisdiction=North_Carolina party=Inspire_Pharmaceuticals_Inc. party=Barry_G._Pea
|
||||||
|
jurisdiction=Arizona party=Jda_Software_Inc. party=Compuware_Corporation
|
||||||
|
jurisdiction=Indiana party=Peoples_Bank_Sb
|
||||||
|
jurisdiction=New_Jersey party=Oceanfinancial_Corp.
|
||||||
|
effective_date=2005-05-17 jurisdiction=California party=Patricia_Sueltz party=Salesforce.Com_Inc.
|
||||||
|
effective_date=2018-03-30 jurisdiction=Delaware party=Jamba_Inc. party=Focus_Brands_Inc. term=2_years
|
||||||
|
effective_date=2013-05-01 jurisdiction=Georgia party=Citi_Trends_Inc. party=Ivy_Council
|
||||||
|
effective_date=2005-07-03 jurisdiction=New_York party=Common_Sense_Ltd. party=Synova_Healthcare_Inc. term=5_years
|
||||||
|
effective_date=2015-06-23 jurisdiction=New_York party=Consac_LLC party=Musclepharm_Corporation term=12_months
|
||||||
|
effective_date=2008-01-01 jurisdiction=California party=Biolargo_Inc. party=Joseph_L._Provenzano
|
||||||
|
jurisdiction=Minnesota party=The_St._Paul_Travelers_Companies_Inc.
|
||||||
|
jurisdiction=California party=Kbs_Capital_Advisors_LLC term=2_years
|
||||||
|
effective_date=2018-08-16 jurisdiction=Kentucky party=Cafepress_Inc. party=District_Photo_Inc. term=1_year
|
||||||
|
effective_date=2016-01-27 jurisdiction=Minnesota party=Target_Corporation party=Tina_Tyler
|
||||||
|
jurisdiction=Ohio party=Fifth_Third_Processing_Solutions_LLC
|
||||||
|
jurisdiction=Michigan party=Hi-Tex_Inc. party=Quaker_Fabric_Corporation_Of_Fall_River
|
||||||
|
jurisdiction=California party=Gigpeak_Inc. party=Integrated_Device_Technology_Inc.
|
||||||
|
effective_date=2000-02-10 jurisdiction=Minnesota party=New_England_Business_Service_Inc. party=Premium_Wear_Inc.
|
||||||
|
effective_date=2008-11-06 jurisdiction=California party=Biolargo_Inc. party=Howard_Isaacs
|
||||||
|
effective_date=2007-05-09 jurisdiction=Delaware party=Opsware_Inc. party=Hewlett-Packard_Company term=12_months
|
||||||
|
jurisdiction=Illinois party=Jeremiah_Kaye party=Ahp_Servicing_LLC
|
||||||
|
effective_date=2003-05-14 jurisdiction=Minnesota party=Flexsteel_Industries_Inc. party=Dmi_Furniture_Inc.
|
||||||
|
effective_date=2010-06-23 jurisdiction=Texas party=Allis-Chalmers_Energy_Inc. party=Seawell_Ltd. term=2_years
|
||||||
|
jurisdiction=New_Jersey party=Algorx_Pharmaceuticals_Inc. term=10_years
|
||||||
|
effective_date=2009-11-06 jurisdiction=Delaware party=Hid_Global_Corporation party=Lasercard_Corporation term=3_years
|
||||||
|
jurisdiction=Washington party=Corus_Pharma_Inc. party=A._Bruce_Montgomery
|
||||||
|
effective_date=2005-02-16 party=Omni_National_Bank party=Jeffrey_L._Levine
|
||||||
|
effective_date=2014-11-26 jurisdiction=Delaware party=E2open_Inc. party=Insight_Venture_Partners_LLC
|
||||||
|
effective_date=1999-03-16 jurisdiction=Oregon party=Acumed_Inc. party=Medex_Surgical
|
||||||
|
effective_date=2008-07-02 jurisdiction=Delaware party=Unionbancal_Corporation party=The_Bank_Of_Tokyo-Mitsubishi_Ufj term=2_years
|
||||||
|
effective_date=2012-06-11 jurisdiction=Delaware party=Lightwave_Logic_Inc. party=Ronald_A._Bucchi
|
||||||
|
effective_date=2007-03-04 jurisdiction=Delaware party=Webex_Communications_Inc. party=Cisco_Systems_Inc. term=2_years
|
||||||
|
effective_date=2007-04-30 jurisdiction=Massachusetts party=Accurel_Systems_International_Corporation party=Implant_Sciences_Corporation
|
||||||
|
effective_date=2011-11-01 jurisdiction=California party=Life_Technologies_Corporation party=Bernd_Brust
|
||||||
|
effective_date=2012-09-20 party=Contran_Corporation party=Precision_Castparts_Corp.
|
||||||
|
effective_date=2016-03-15 jurisdiction=Delaware party=Orchestra-Prémaman_Sa party=Destination_Maternity_Corporation term=9_months
|
||||||
|
effective_date=2005-09-29 jurisdiction=Illinois party=Paul_B._Mulhollem party=Archer-Daniels-Midland_Company
|
||||||
|
effective_date=2005-05-04 jurisdiction=Idaho party=Affiliated_Companies party=Michael_L._Mooney
|
||||||
|
effective_date=2007-08-14 jurisdiction=Washington party=Photoworks_Inc. party=American_Greetings_Corporation
|
||||||
|
effective_date=2016-05-03 jurisdiction=New_York party=Wizard_World_Inc. party=John_D._Maatta
|
||||||
|
effective_date=2008-08-01 jurisdiction=New_York party=Omrix_Biopharmaceuticals_Inc. party=Ethicon_Inc.
|
||||||
|
effective_date=2006-01-01 jurisdiction=California party=Bank_Of_Beverly_Hills party=Joseph_W._Kiley_Iii term=12_months
|
||||||
|
effective_date=2015-03-16 jurisdiction=Utah party=Galil_Medical_Inc. party=Perseon_Corporation
|
||||||
|
effective_date=2012-07-05 jurisdiction=Delaware party=Curtiss-Wright_Controls_Inc. party=Williams_Controls_Inc. term=3_years
|
||||||
|
effective_date=2015-12-08 jurisdiction=Washington party=Anchor_Bancorp party=Joel_S._Lawson_Iv party=Varonica_S._Ragan term=1_year
|
||||||
|
effective_date=2005-02-24 jurisdiction=Virginia party=Mobile_Satellite_Ventures party=Alexander_H._Good
|
||||||
|
effective_date=2006-12-19 jurisdiction=New_York party=Mapinfo_Corporation party=Pitney_Bowes_Inc.
|
||||||
|
jurisdiction=New_York party=Axcan_Pharma_Inc. party=Tpg_Capital_LP party=Eurand_N.V. term=24_months
|
||||||
|
jurisdiction=Illinois party=Motorola_Inc. party=Iridium_Satellite_LLC
|
||||||
|
effective_date=2008-01-01 jurisdiction=California party=Gigoptix_LLC party=Avi_Katz
|
||||||
|
effective_date=2017-10-02 jurisdiction=Delaware party=Potbelly_Corporation party=Ancora_Advisors_LLC term=2_years
|
||||||
|
party=Ideal_Restaurant_Group_Inc. party=The_Schooner_Group_LLC
|
||||||
|
effective_date=2011-03-29 jurisdiction=Texas party=Newgistics_Inc. party=Stephen_M._Mattessich
|
||||||
|
effective_date=2011-05-26 jurisdiction=California party=Skyworks_Solutions_Inc. party=Richard_K._Williams
|
||||||
|
effective_date=2006-09-01 jurisdiction=Washington party=Microsoft_Corporation party=Digital_River_Inc.
|
||||||
|
effective_date=2015-04-02 jurisdiction=Delaware party=Columbus_Mckinnon_Corporation party=Magnetek_Inc. term=3_years
|
||||||
|
effective_date=2017-07-21 jurisdiction=Washington party=Adaptive_Biotechnologies party=Microsoft_Corporation
|
||||||
|
effective_date=2011-01-18 jurisdiction=New_York party=Orthovita_Inc. party=Stryker_Corporation term=2_years
|
||||||
|
jurisdiction=Washington party=Alder_Biopharmaceuticals_Inc. party=H._Lundbeck_A/S term=1_year
|
||||||
|
effective_date=2015-07-21 jurisdiction=Illinois party=Us_Foods_Inc. party=Pietro_Satriano
|
|
83
dev-0/.ipynb_checkpoints/in-checkpoint.tsv
Normal file
83
dev-0/.ipynb_checkpoints/in-checkpoint.tsv
Normal file
File diff suppressed because one or more lines are too long
83
dev-0/.ipynb_checkpoints/out-checkpoint.tsv
Normal file
83
dev-0/.ipynb_checkpoints/out-checkpoint.tsv
Normal file
@ -0,0 +1,83 @@
|
|||||||
|
jurisdiction=New_York
|
||||||
|
jurisdiction=Georgia
|
||||||
|
jurisdiction=Delaware
|
||||||
|
jurisdiction=Massachusetts
|
||||||
|
jurisdiction=Delaware
|
||||||
|
jurisdiction=Washington
|
||||||
|
jurisdiction=Delaware
|
||||||
|
jurisdiction=New_Jersey
|
||||||
|
jurisdiction=New_York
|
||||||
|
jurisdiction=Alabama
|
||||||
|
jurisdiction=Delaware
|
||||||
|
jurisdiction=Delaware
|
||||||
|
jurisdiction=Delaware
|
||||||
|
jurisdiction=Delaware
|
||||||
|
jurisdiction=Delaware
|
||||||
|
jurisdiction=Massachusetts
|
||||||
|
jurisdiction=Delaware
|
||||||
|
jurisdiction=California
|
||||||
|
jurisdiction=New_York
|
||||||
|
jurisdiction=California
|
||||||
|
jurisdiction=Iowa
|
||||||
|
jurisdiction=Delaware
|
||||||
|
jurisdiction=Virginia
|
||||||
|
jurisdiction=North_Carolina
|
||||||
|
jurisdiction=Arizona
|
||||||
|
jurisdiction=Indiana
|
||||||
|
jurisdiction=New_Jersey
|
||||||
|
jurisdiction=California
|
||||||
|
jurisdiction=Delaware
|
||||||
|
jurisdiction=Georgia
|
||||||
|
jurisdiction=Delaware
|
||||||
|
jurisdiction=New_York
|
||||||
|
jurisdiction=California
|
||||||
|
jurisdiction=Minnesota
|
||||||
|
jurisdiction=Delaware
|
||||||
|
jurisdiction=Kentucky
|
||||||
|
jurisdiction=Minnesota
|
||||||
|
jurisdiction=Ohio
|
||||||
|
jurisdiction=Massachusetts
|
||||||
|
jurisdiction=California
|
||||||
|
jurisdiction=Minnesota
|
||||||
|
jurisdiction=California
|
||||||
|
jurisdiction=Delaware
|
||||||
|
jurisdiction=Illinois
|
||||||
|
jurisdiction=Minnesota
|
||||||
|
jurisdiction=Texas
|
||||||
|
jurisdiction=New_Jersey
|
||||||
|
jurisdiction=Delaware
|
||||||
|
jurisdiction=Washington
|
||||||
|
jurisdiction=Georgia
|
||||||
|
jurisdiction=Delaware
|
||||||
|
jurisdiction=Oregon
|
||||||
|
jurisdiction=California
|
||||||
|
jurisdiction=Delaware
|
||||||
|
jurisdiction=Delaware
|
||||||
|
jurisdiction=Massachusetts
|
||||||
|
jurisdiction=California
|
||||||
|
jurisdiction=Delaware
|
||||||
|
jurisdiction=Delaware
|
||||||
|
jurisdiction=Illinois
|
||||||
|
jurisdiction=Idaho
|
||||||
|
jurisdiction=Ohio
|
||||||
|
jurisdiction=California
|
||||||
|
jurisdiction=New_York
|
||||||
|
jurisdiction=California
|
||||||
|
jurisdiction=Utah
|
||||||
|
jurisdiction=Delaware
|
||||||
|
jurisdiction=Washington
|
||||||
|
jurisdiction=Virginia
|
||||||
|
jurisdiction=Connecticut
|
||||||
|
jurisdiction=New_York
|
||||||
|
jurisdiction=Delaware
|
||||||
|
jurisdiction=California
|
||||||
|
jurisdiction=Delaware
|
||||||
|
jurisdiction=Alabama
|
||||||
|
jurisdiction=Texas
|
||||||
|
jurisdiction=California
|
||||||
|
jurisdiction=Washington
|
||||||
|
jurisdiction=Delaware
|
||||||
|
jurisdiction=Washington
|
||||||
|
jurisdiction=New_York
|
||||||
|
jurisdiction=Washington
|
||||||
|
jurisdiction=Illinois
|
|
83
dev-0/in.tsv
Normal file
83
dev-0/in.tsv
Normal file
File diff suppressed because one or more lines are too long
83
dev-0/out.tsv
Normal file
83
dev-0/out.tsv
Normal file
@ -0,0 +1,83 @@
|
|||||||
|
jurisdiction=New_York
|
||||||
|
jurisdiction=Georgia
|
||||||
|
jurisdiction=Delaware
|
||||||
|
jurisdiction=Massachusetts
|
||||||
|
jurisdiction=Delaware
|
||||||
|
jurisdiction=Washington
|
||||||
|
jurisdiction=Delaware
|
||||||
|
jurisdiction=New_Jersey
|
||||||
|
jurisdiction=New_York
|
||||||
|
jurisdiction=Alabama
|
||||||
|
jurisdiction=Delaware
|
||||||
|
jurisdiction=Delaware
|
||||||
|
jurisdiction=Delaware
|
||||||
|
jurisdiction=Delaware
|
||||||
|
jurisdiction=Delaware
|
||||||
|
jurisdiction=Massachusetts
|
||||||
|
jurisdiction=Delaware
|
||||||
|
jurisdiction=California
|
||||||
|
jurisdiction=New_York
|
||||||
|
jurisdiction=California
|
||||||
|
jurisdiction=Iowa
|
||||||
|
jurisdiction=Delaware
|
||||||
|
jurisdiction=Virginia
|
||||||
|
jurisdiction=North_Carolina
|
||||||
|
jurisdiction=Arizona
|
||||||
|
jurisdiction=Indiana
|
||||||
|
jurisdiction=New_Jersey
|
||||||
|
jurisdiction=California
|
||||||
|
jurisdiction=Delaware
|
||||||
|
jurisdiction=Georgia
|
||||||
|
jurisdiction=Delaware
|
||||||
|
jurisdiction=New_York
|
||||||
|
jurisdiction=California
|
||||||
|
jurisdiction=Minnesota
|
||||||
|
jurisdiction=Delaware
|
||||||
|
jurisdiction=Kentucky
|
||||||
|
jurisdiction=Minnesota
|
||||||
|
jurisdiction=Ohio
|
||||||
|
jurisdiction=Massachusetts
|
||||||
|
jurisdiction=California
|
||||||
|
jurisdiction=Minnesota
|
||||||
|
jurisdiction=California
|
||||||
|
jurisdiction=Delaware
|
||||||
|
jurisdiction=Illinois
|
||||||
|
jurisdiction=Minnesota
|
||||||
|
jurisdiction=Texas
|
||||||
|
jurisdiction=New_Jersey
|
||||||
|
jurisdiction=Delaware
|
||||||
|
jurisdiction=Washington
|
||||||
|
jurisdiction=Georgia
|
||||||
|
jurisdiction=Delaware
|
||||||
|
jurisdiction=Oregon
|
||||||
|
jurisdiction=California
|
||||||
|
jurisdiction=Delaware
|
||||||
|
jurisdiction=Delaware
|
||||||
|
jurisdiction=Massachusetts
|
||||||
|
jurisdiction=California
|
||||||
|
jurisdiction=Delaware
|
||||||
|
jurisdiction=Delaware
|
||||||
|
jurisdiction=Illinois
|
||||||
|
jurisdiction=Idaho
|
||||||
|
jurisdiction=Ohio
|
||||||
|
jurisdiction=California
|
||||||
|
jurisdiction=New_York
|
||||||
|
jurisdiction=California
|
||||||
|
jurisdiction=Utah
|
||||||
|
jurisdiction=Delaware
|
||||||
|
jurisdiction=Washington
|
||||||
|
jurisdiction=Virginia
|
||||||
|
jurisdiction=Connecticut
|
||||||
|
jurisdiction=New_York
|
||||||
|
jurisdiction=Delaware
|
||||||
|
jurisdiction=California
|
||||||
|
jurisdiction=Delaware
|
||||||
|
jurisdiction=Alabama
|
||||||
|
jurisdiction=Texas
|
||||||
|
jurisdiction=California
|
||||||
|
jurisdiction=Washington
|
||||||
|
jurisdiction=Delaware
|
||||||
|
jurisdiction=Washington
|
||||||
|
jurisdiction=New_York
|
||||||
|
jurisdiction=Washington
|
||||||
|
jurisdiction=Illinois
|
|
Binary file not shown.
122
run.ipynb
Normal file
122
run.ipynb
Normal file
@ -0,0 +1,122 @@
|
|||||||
|
{
|
||||||
|
"cells": [
|
||||||
|
{
|
||||||
|
"cell_type": "code",
|
||||||
|
"execution_count": 17,
|
||||||
|
"id": "8b07c9a5-e5cf-4cf9-a6d9-e784eb109fef",
|
||||||
|
"metadata": {},
|
||||||
|
"outputs": [],
|
||||||
|
"source": [
|
||||||
|
"import re"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"cell_type": "code",
|
||||||
|
"execution_count": 5,
|
||||||
|
"id": "fce94c21-6792-4938-bf2c-3f46ecf2f954",
|
||||||
|
"metadata": {},
|
||||||
|
"outputs": [],
|
||||||
|
"source": [
|
||||||
|
"states = ['Alabama', 'Alaska', 'Arizona', 'Arkansas', 'California', 'Colorado', 'Connecticut', 'Delaware', 'Florida', 'Georgia', \n",
|
||||||
|
" 'Hawaii', 'Idaho', 'Illinois', 'Indiana', 'Iowa', 'Kansas', 'Kentucky', 'Louisiana', 'Maine', 'Maryland', \n",
|
||||||
|
" 'Massachusetts', 'Michigan', 'Minnesota', 'Mississippi', 'Missouri', 'Montana', 'Nebraska', 'Nevada', 'New Hampshire', 'New Jersey', \n",
|
||||||
|
" 'New Mexico', 'New York', 'North Carolina', 'North Dakota', 'Ohio', 'Oklahoma', 'Oregon', 'Pennsylvania', 'Rhode Island', 'South Carolina', \n",
|
||||||
|
" 'South Dakota', 'Tennessee', 'Texas', 'Utah', 'Vermont', 'Virginia', 'Washington', 'West Virginia', 'Wisconsin', 'Wyoming']"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"cell_type": "code",
|
||||||
|
"execution_count": 6,
|
||||||
|
"id": "eb1815f2-1876-4437-833a-ff22de81685e",
|
||||||
|
"metadata": {},
|
||||||
|
"outputs": [],
|
||||||
|
"source": [
|
||||||
|
"def counter(text_in, query):\n",
|
||||||
|
" pattern = re.compile(query)\n",
|
||||||
|
" return len(pattern.findall(text_in, re.IGNORECASE))"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"cell_type": "code",
|
||||||
|
"execution_count": 7,
|
||||||
|
"id": "8729062d-87b8-4111-a216-8500334f54b6",
|
||||||
|
"metadata": {},
|
||||||
|
"outputs": [],
|
||||||
|
"source": [
|
||||||
|
"def state_prediction(text_in):\n",
|
||||||
|
" state_dict = {}\n",
|
||||||
|
" for state in states:\n",
|
||||||
|
" state_dict[state.replace(\" \", \"_\")] = counter(text_in, state) \n",
|
||||||
|
" return max(state_dict, key=state_dict.get)"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"cell_type": "code",
|
||||||
|
"execution_count": 20,
|
||||||
|
"id": "ea8069f7-de8e-454c-8eac-9fb7cc0df626",
|
||||||
|
"metadata": {},
|
||||||
|
"outputs": [],
|
||||||
|
"source": [
|
||||||
|
"def jurisdiction(path_in, path_out): \n",
|
||||||
|
" with open(path_in, 'r', encoding='utf8') as file:\n",
|
||||||
|
" lines = file.readlines() \n",
|
||||||
|
" with open(path_out, 'wt')as file_out:\n",
|
||||||
|
" for i in lines:\n",
|
||||||
|
" file_out.write(\"jurisdiction=\"+str(state_prediction(i))+'\\n') \n",
|
||||||
|
" file_out.close()"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"cell_type": "code",
|
||||||
|
"execution_count": 21,
|
||||||
|
"id": "ade45bfb-9eaa-4b2b-bba1-6cfcaf0a9ce6",
|
||||||
|
"metadata": {},
|
||||||
|
"outputs": [],
|
||||||
|
"source": [
|
||||||
|
"jurisdiction('dev-0/in.tsv', 'dev-0/out.tsv')\n",
|
||||||
|
"jurisdiction('train/in.tsv', 'train/out.tsv')\n",
|
||||||
|
"jurisdiction('test-A/in.tsv', 'test-A/out.tsv')"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"cell_type": "code",
|
||||||
|
"execution_count": 22,
|
||||||
|
"id": "594a25a9-a0ce-4de9-82c8-df50a4ecac39",
|
||||||
|
"metadata": {},
|
||||||
|
"outputs": [
|
||||||
|
{
|
||||||
|
"name": "stderr",
|
||||||
|
"output_type": "stream",
|
||||||
|
"text": [
|
||||||
|
"[NbConvertApp] Converting notebook run.ipynb to script\n",
|
||||||
|
"[NbConvertApp] Writing 1634 bytes to run.py\n"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"source": [
|
||||||
|
"!jupyter nbconvert --to script run.ipynb"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"metadata": {
|
||||||
|
"kernelspec": {
|
||||||
|
"display_name": "Python 3 (ipykernel)",
|
||||||
|
"language": "python",
|
||||||
|
"name": "python3"
|
||||||
|
},
|
||||||
|
"language_info": {
|
||||||
|
"codemirror_mode": {
|
||||||
|
"name": "ipython",
|
||||||
|
"version": 3
|
||||||
|
},
|
||||||
|
"file_extension": ".py",
|
||||||
|
"mimetype": "text/x-python",
|
||||||
|
"name": "python",
|
||||||
|
"nbconvert_exporter": "python",
|
||||||
|
"pygments_lexer": "ipython3",
|
||||||
|
"version": "3.9.7"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"nbformat": 4,
|
||||||
|
"nbformat_minor": 5
|
||||||
|
}
|
62
run.py
Normal file
62
run.py
Normal file
@ -0,0 +1,62 @@
|
|||||||
|
#!/usr/bin/env python
|
||||||
|
# coding: utf-8
|
||||||
|
|
||||||
|
# In[17]:
|
||||||
|
|
||||||
|
|
||||||
|
import re
|
||||||
|
|
||||||
|
|
||||||
|
# In[5]:
|
||||||
|
|
||||||
|
|
||||||
|
states = ['Alabama', 'Alaska', 'Arizona', 'Arkansas', 'California', 'Colorado', 'Connecticut', 'Delaware', 'Florida', 'Georgia',
|
||||||
|
'Hawaii', 'Idaho', 'Illinois', 'Indiana', 'Iowa', 'Kansas', 'Kentucky', 'Louisiana', 'Maine', 'Maryland',
|
||||||
|
'Massachusetts', 'Michigan', 'Minnesota', 'Mississippi', 'Missouri', 'Montana', 'Nebraska', 'Nevada', 'New Hampshire', 'New Jersey',
|
||||||
|
'New Mexico', 'New York', 'North Carolina', 'North Dakota', 'Ohio', 'Oklahoma', 'Oregon', 'Pennsylvania', 'Rhode Island', 'South Carolina',
|
||||||
|
'South Dakota', 'Tennessee', 'Texas', 'Utah', 'Vermont', 'Virginia', 'Washington', 'West Virginia', 'Wisconsin', 'Wyoming']
|
||||||
|
|
||||||
|
|
||||||
|
# In[6]:
|
||||||
|
|
||||||
|
|
||||||
|
def counter(text_in, query):
|
||||||
|
pattern = re.compile(query)
|
||||||
|
return len(pattern.findall(text_in, re.IGNORECASE))
|
||||||
|
|
||||||
|
|
||||||
|
# In[7]:
|
||||||
|
|
||||||
|
|
||||||
|
def state_prediction(text_in):
|
||||||
|
state_dict = {}
|
||||||
|
for state in states:
|
||||||
|
state_dict[state.replace(" ", "_")] = counter(text_in, state)
|
||||||
|
return max(state_dict, key=state_dict.get)
|
||||||
|
|
||||||
|
|
||||||
|
# In[20]:
|
||||||
|
|
||||||
|
|
||||||
|
def jurisdiction(path_in, path_out):
|
||||||
|
with open(path_in, 'r', encoding='utf8') as file:
|
||||||
|
lines = file.readlines()
|
||||||
|
with open(path_out, 'wt')as file_out:
|
||||||
|
for i in lines:
|
||||||
|
file_out.write("jurisdiction="+str(state_prediction(i))+'\n')
|
||||||
|
file_out.close()
|
||||||
|
|
||||||
|
|
||||||
|
# In[21]:
|
||||||
|
|
||||||
|
|
||||||
|
jurisdiction('dev-0/in.tsv', 'dev-0/out.tsv')
|
||||||
|
jurisdiction('train/in.tsv', 'train/out.tsv')
|
||||||
|
jurisdiction('test-A/in.tsv', 'test-A/out.tsv')
|
||||||
|
|
||||||
|
|
||||||
|
# In[ ]:
|
||||||
|
|
||||||
|
|
||||||
|
# get_ipython().system('jupyter nbconvert --to script run.ipynb')
|
||||||
|
|
203
test-A/in.tsv
Normal file
203
test-A/in.tsv
Normal file
File diff suppressed because one or more lines are too long
203
test-A/out.tsv
Normal file
203
test-A/out.tsv
Normal file
@ -0,0 +1,203 @@
|
|||||||
|
jurisdiction=Ohio
|
||||||
|
jurisdiction=California
|
||||||
|
jurisdiction=Indiana
|
||||||
|
jurisdiction=New_York
|
||||||
|
jurisdiction=Nevada
|
||||||
|
jurisdiction=Colorado
|
||||||
|
jurisdiction=Colorado
|
||||||
|
jurisdiction=California
|
||||||
|
jurisdiction=Delaware
|
||||||
|
jurisdiction=New_York
|
||||||
|
jurisdiction=California
|
||||||
|
jurisdiction=Delaware
|
||||||
|
jurisdiction=New_York
|
||||||
|
jurisdiction=Georgia
|
||||||
|
jurisdiction=Texas
|
||||||
|
jurisdiction=California
|
||||||
|
jurisdiction=Washington
|
||||||
|
jurisdiction=Alabama
|
||||||
|
jurisdiction=Florida
|
||||||
|
jurisdiction=Delaware
|
||||||
|
jurisdiction=Florida
|
||||||
|
jurisdiction=New_York
|
||||||
|
jurisdiction=California
|
||||||
|
jurisdiction=Florida
|
||||||
|
jurisdiction=New_York
|
||||||
|
jurisdiction=Washington
|
||||||
|
jurisdiction=Texas
|
||||||
|
jurisdiction=Delaware
|
||||||
|
jurisdiction=Delaware
|
||||||
|
jurisdiction=Washington
|
||||||
|
jurisdiction=Delaware
|
||||||
|
jurisdiction=Pennsylvania
|
||||||
|
jurisdiction=California
|
||||||
|
jurisdiction=California
|
||||||
|
jurisdiction=New_York
|
||||||
|
jurisdiction=California
|
||||||
|
jurisdiction=New_York
|
||||||
|
jurisdiction=Delaware
|
||||||
|
jurisdiction=Florida
|
||||||
|
jurisdiction=California
|
||||||
|
jurisdiction=Virginia
|
||||||
|
jurisdiction=Pennsylvania
|
||||||
|
jurisdiction=Delaware
|
||||||
|
jurisdiction=Washington
|
||||||
|
jurisdiction=Virginia
|
||||||
|
jurisdiction=California
|
||||||
|
jurisdiction=Delaware
|
||||||
|
jurisdiction=Delaware
|
||||||
|
jurisdiction=New_Jersey
|
||||||
|
jurisdiction=Delaware
|
||||||
|
jurisdiction=Texas
|
||||||
|
jurisdiction=Massachusetts
|
||||||
|
jurisdiction=Washington
|
||||||
|
jurisdiction=Delaware
|
||||||
|
jurisdiction=Delaware
|
||||||
|
jurisdiction=New_York
|
||||||
|
jurisdiction=Pennsylvania
|
||||||
|
jurisdiction=California
|
||||||
|
jurisdiction=Delaware
|
||||||
|
jurisdiction=Delaware
|
||||||
|
jurisdiction=Delaware
|
||||||
|
jurisdiction=Massachusetts
|
||||||
|
jurisdiction=Connecticut
|
||||||
|
jurisdiction=California
|
||||||
|
jurisdiction=Texas
|
||||||
|
jurisdiction=Delaware
|
||||||
|
jurisdiction=Virginia
|
||||||
|
jurisdiction=Delaware
|
||||||
|
jurisdiction=Washington
|
||||||
|
jurisdiction=Minnesota
|
||||||
|
jurisdiction=Delaware
|
||||||
|
jurisdiction=Texas
|
||||||
|
jurisdiction=Colorado
|
||||||
|
jurisdiction=Colorado
|
||||||
|
jurisdiction=Nevada
|
||||||
|
jurisdiction=New_York
|
||||||
|
jurisdiction=Delaware
|
||||||
|
jurisdiction=Illinois
|
||||||
|
jurisdiction=New_Jersey
|
||||||
|
jurisdiction=New_York
|
||||||
|
jurisdiction=Florida
|
||||||
|
jurisdiction=Virginia
|
||||||
|
jurisdiction=Delaware
|
||||||
|
jurisdiction=Nevada
|
||||||
|
jurisdiction=Delaware
|
||||||
|
jurisdiction=New_Jersey
|
||||||
|
jurisdiction=Delaware
|
||||||
|
jurisdiction=Minnesota
|
||||||
|
jurisdiction=Connecticut
|
||||||
|
jurisdiction=North_Carolina
|
||||||
|
jurisdiction=Kansas
|
||||||
|
jurisdiction=Florida
|
||||||
|
jurisdiction=Washington
|
||||||
|
jurisdiction=Oregon
|
||||||
|
jurisdiction=New_York
|
||||||
|
jurisdiction=Georgia
|
||||||
|
jurisdiction=Delaware
|
||||||
|
jurisdiction=New_York
|
||||||
|
jurisdiction=Colorado
|
||||||
|
jurisdiction=California
|
||||||
|
jurisdiction=Delaware
|
||||||
|
jurisdiction=Ohio
|
||||||
|
jurisdiction=Minnesota
|
||||||
|
jurisdiction=Delaware
|
||||||
|
jurisdiction=California
|
||||||
|
jurisdiction=Connecticut
|
||||||
|
jurisdiction=Maryland
|
||||||
|
jurisdiction=Delaware
|
||||||
|
jurisdiction=Utah
|
||||||
|
jurisdiction=California
|
||||||
|
jurisdiction=Utah
|
||||||
|
jurisdiction=Colorado
|
||||||
|
jurisdiction=Delaware
|
||||||
|
jurisdiction=New_York
|
||||||
|
jurisdiction=California
|
||||||
|
jurisdiction=Delaware
|
||||||
|
jurisdiction=Virginia
|
||||||
|
jurisdiction=Massachusetts
|
||||||
|
jurisdiction=Texas
|
||||||
|
jurisdiction=Massachusetts
|
||||||
|
jurisdiction=Colorado
|
||||||
|
jurisdiction=New_York
|
||||||
|
jurisdiction=Michigan
|
||||||
|
jurisdiction=Pennsylvania
|
||||||
|
jurisdiction=New_York
|
||||||
|
jurisdiction=New_Jersey
|
||||||
|
jurisdiction=Georgia
|
||||||
|
jurisdiction=Minnesota
|
||||||
|
jurisdiction=Ohio
|
||||||
|
jurisdiction=Oregon
|
||||||
|
jurisdiction=New_Jersey
|
||||||
|
jurisdiction=Florida
|
||||||
|
jurisdiction=Oregon
|
||||||
|
jurisdiction=Massachusetts
|
||||||
|
jurisdiction=Ohio
|
||||||
|
jurisdiction=Minnesota
|
||||||
|
jurisdiction=Maryland
|
||||||
|
jurisdiction=Indiana
|
||||||
|
jurisdiction=California
|
||||||
|
jurisdiction=Virginia
|
||||||
|
jurisdiction=Tennessee
|
||||||
|
jurisdiction=Delaware
|
||||||
|
jurisdiction=Maryland
|
||||||
|
jurisdiction=Minnesota
|
||||||
|
jurisdiction=Ohio
|
||||||
|
jurisdiction=California
|
||||||
|
jurisdiction=New_Jersey
|
||||||
|
jurisdiction=Colorado
|
||||||
|
jurisdiction=Indiana
|
||||||
|
jurisdiction=Virginia
|
||||||
|
jurisdiction=Minnesota
|
||||||
|
jurisdiction=New_York
|
||||||
|
jurisdiction=Delaware
|
||||||
|
jurisdiction=New_York
|
||||||
|
jurisdiction=California
|
||||||
|
jurisdiction=Delaware
|
||||||
|
jurisdiction=Louisiana
|
||||||
|
jurisdiction=Georgia
|
||||||
|
jurisdiction=New_York
|
||||||
|
jurisdiction=New_York
|
||||||
|
jurisdiction=Oregon
|
||||||
|
jurisdiction=Nevada
|
||||||
|
jurisdiction=California
|
||||||
|
jurisdiction=North_Carolina
|
||||||
|
jurisdiction=California
|
||||||
|
jurisdiction=Georgia
|
||||||
|
jurisdiction=California
|
||||||
|
jurisdiction=New_York
|
||||||
|
jurisdiction=Alabama
|
||||||
|
jurisdiction=New_York
|
||||||
|
jurisdiction=Indiana
|
||||||
|
jurisdiction=Georgia
|
||||||
|
jurisdiction=New_Jersey
|
||||||
|
jurisdiction=Minnesota
|
||||||
|
jurisdiction=North_Carolina
|
||||||
|
jurisdiction=Delaware
|
||||||
|
jurisdiction=Kentucky
|
||||||
|
jurisdiction=Nevada
|
||||||
|
jurisdiction=Missouri
|
||||||
|
jurisdiction=Colorado
|
||||||
|
jurisdiction=Connecticut
|
||||||
|
jurisdiction=Delaware
|
||||||
|
jurisdiction=North_Carolina
|
||||||
|
jurisdiction=Delaware
|
||||||
|
jurisdiction=Georgia
|
||||||
|
jurisdiction=Delaware
|
||||||
|
jurisdiction=New_York
|
||||||
|
jurisdiction=Pennsylvania
|
||||||
|
jurisdiction=California
|
||||||
|
jurisdiction=Maryland
|
||||||
|
jurisdiction=California
|
||||||
|
jurisdiction=Delaware
|
||||||
|
jurisdiction=Pennsylvania
|
||||||
|
jurisdiction=New_York
|
||||||
|
jurisdiction=Virginia
|
||||||
|
jurisdiction=Virginia
|
||||||
|
jurisdiction=Delaware
|
||||||
|
jurisdiction=Nevada
|
||||||
|
jurisdiction=Nevada
|
||||||
|
jurisdiction=Delaware
|
||||||
|
jurisdiction=California
|
||||||
|
jurisdiction=Colorado
|
||||||
|
jurisdiction=Alabama
|
|
254
train/in.tsv
Normal file
254
train/in.tsv
Normal file
File diff suppressed because one or more lines are too long
254
train/out.tsv
Normal file
254
train/out.tsv
Normal file
@ -0,0 +1,254 @@
|
|||||||
|
jurisdiction=Oregon
|
||||||
|
jurisdiction=Delaware
|
||||||
|
jurisdiction=Florida
|
||||||
|
jurisdiction=Pennsylvania
|
||||||
|
jurisdiction=California
|
||||||
|
jurisdiction=California
|
||||||
|
jurisdiction=New_York
|
||||||
|
jurisdiction=Delaware
|
||||||
|
jurisdiction=Illinois
|
||||||
|
jurisdiction=New_York
|
||||||
|
jurisdiction=Delaware
|
||||||
|
jurisdiction=Iowa
|
||||||
|
jurisdiction=Delaware
|
||||||
|
jurisdiction=Indiana
|
||||||
|
jurisdiction=New_York
|
||||||
|
jurisdiction=Massachusetts
|
||||||
|
jurisdiction=New_York
|
||||||
|
jurisdiction=Michigan
|
||||||
|
jurisdiction=Indiana
|
||||||
|
jurisdiction=Colorado
|
||||||
|
jurisdiction=Florida
|
||||||
|
jurisdiction=New_York
|
||||||
|
jurisdiction=Oregon
|
||||||
|
jurisdiction=Pennsylvania
|
||||||
|
jurisdiction=Delaware
|
||||||
|
jurisdiction=Florida
|
||||||
|
jurisdiction=Delaware
|
||||||
|
jurisdiction=Illinois
|
||||||
|
jurisdiction=Illinois
|
||||||
|
jurisdiction=Delaware
|
||||||
|
jurisdiction=California
|
||||||
|
jurisdiction=Delaware
|
||||||
|
jurisdiction=Missouri
|
||||||
|
jurisdiction=Oregon
|
||||||
|
jurisdiction=Delaware
|
||||||
|
jurisdiction=Delaware
|
||||||
|
jurisdiction=Connecticut
|
||||||
|
jurisdiction=Nevada
|
||||||
|
jurisdiction=New_York
|
||||||
|
jurisdiction=Illinois
|
||||||
|
jurisdiction=Idaho
|
||||||
|
jurisdiction=Florida
|
||||||
|
jurisdiction=Delaware
|
||||||
|
jurisdiction=Delaware
|
||||||
|
jurisdiction=Minnesota
|
||||||
|
jurisdiction=Virginia
|
||||||
|
jurisdiction=California
|
||||||
|
jurisdiction=California
|
||||||
|
jurisdiction=Nevada
|
||||||
|
jurisdiction=New_York
|
||||||
|
jurisdiction=Washington
|
||||||
|
jurisdiction=New_York
|
||||||
|
jurisdiction=Ohio
|
||||||
|
jurisdiction=Nevada
|
||||||
|
jurisdiction=Florida
|
||||||
|
jurisdiction=Delaware
|
||||||
|
jurisdiction=Texas
|
||||||
|
jurisdiction=New_York
|
||||||
|
jurisdiction=New_York
|
||||||
|
jurisdiction=Virginia
|
||||||
|
jurisdiction=Wisconsin
|
||||||
|
jurisdiction=Colorado
|
||||||
|
jurisdiction=Oregon
|
||||||
|
jurisdiction=Delaware
|
||||||
|
jurisdiction=Ohio
|
||||||
|
jurisdiction=Missouri
|
||||||
|
jurisdiction=South_Dakota
|
||||||
|
jurisdiction=New_York
|
||||||
|
jurisdiction=Indiana
|
||||||
|
jurisdiction=Minnesota
|
||||||
|
jurisdiction=Maine
|
||||||
|
jurisdiction=Kansas
|
||||||
|
jurisdiction=Delaware
|
||||||
|
jurisdiction=Illinois
|
||||||
|
jurisdiction=Indiana
|
||||||
|
jurisdiction=Massachusetts
|
||||||
|
jurisdiction=Illinois
|
||||||
|
jurisdiction=New_Jersey
|
||||||
|
jurisdiction=California
|
||||||
|
jurisdiction=California
|
||||||
|
jurisdiction=Maine
|
||||||
|
jurisdiction=North_Carolina
|
||||||
|
jurisdiction=Missouri
|
||||||
|
jurisdiction=Georgia
|
||||||
|
jurisdiction=Missouri
|
||||||
|
jurisdiction=New_York
|
||||||
|
jurisdiction=Georgia
|
||||||
|
jurisdiction=New_York
|
||||||
|
jurisdiction=Delaware
|
||||||
|
jurisdiction=California
|
||||||
|
jurisdiction=Oregon
|
||||||
|
jurisdiction=Delaware
|
||||||
|
jurisdiction=Delaware
|
||||||
|
jurisdiction=Connecticut
|
||||||
|
jurisdiction=Utah
|
||||||
|
jurisdiction=Texas
|
||||||
|
jurisdiction=Delaware
|
||||||
|
jurisdiction=Ohio
|
||||||
|
jurisdiction=California
|
||||||
|
jurisdiction=California
|
||||||
|
jurisdiction=New_York
|
||||||
|
jurisdiction=North_Carolina
|
||||||
|
jurisdiction=Texas
|
||||||
|
jurisdiction=New_York
|
||||||
|
jurisdiction=New_Jersey
|
||||||
|
jurisdiction=Georgia
|
||||||
|
jurisdiction=Massachusetts
|
||||||
|
jurisdiction=Texas
|
||||||
|
jurisdiction=Delaware
|
||||||
|
jurisdiction=New_York
|
||||||
|
jurisdiction=Pennsylvania
|
||||||
|
jurisdiction=Pennsylvania
|
||||||
|
jurisdiction=Delaware
|
||||||
|
jurisdiction=Delaware
|
||||||
|
jurisdiction=Florida
|
||||||
|
jurisdiction=California
|
||||||
|
jurisdiction=California
|
||||||
|
jurisdiction=Delaware
|
||||||
|
jurisdiction=Oregon
|
||||||
|
jurisdiction=North_Carolina
|
||||||
|
jurisdiction=Delaware
|
||||||
|
jurisdiction=Maryland
|
||||||
|
jurisdiction=Delaware
|
||||||
|
jurisdiction=Delaware
|
||||||
|
jurisdiction=New_York
|
||||||
|
jurisdiction=Massachusetts
|
||||||
|
jurisdiction=Massachusetts
|
||||||
|
jurisdiction=New_York
|
||||||
|
jurisdiction=Missouri
|
||||||
|
jurisdiction=Virginia
|
||||||
|
jurisdiction=California
|
||||||
|
jurisdiction=Virginia
|
||||||
|
jurisdiction=California
|
||||||
|
jurisdiction=Alabama
|
||||||
|
jurisdiction=Wisconsin
|
||||||
|
jurisdiction=Washington
|
||||||
|
jurisdiction=New_York
|
||||||
|
jurisdiction=California
|
||||||
|
jurisdiction=Illinois
|
||||||
|
jurisdiction=Delaware
|
||||||
|
jurisdiction=Massachusetts
|
||||||
|
jurisdiction=California
|
||||||
|
jurisdiction=Ohio
|
||||||
|
jurisdiction=Illinois
|
||||||
|
jurisdiction=New_York
|
||||||
|
jurisdiction=Delaware
|
||||||
|
jurisdiction=Delaware
|
||||||
|
jurisdiction=Massachusetts
|
||||||
|
jurisdiction=Massachusetts
|
||||||
|
jurisdiction=Utah
|
||||||
|
jurisdiction=Washington
|
||||||
|
jurisdiction=Texas
|
||||||
|
jurisdiction=California
|
||||||
|
jurisdiction=California
|
||||||
|
jurisdiction=Colorado
|
||||||
|
jurisdiction=Georgia
|
||||||
|
jurisdiction=Delaware
|
||||||
|
jurisdiction=Delaware
|
||||||
|
jurisdiction=New_Jersey
|
||||||
|
jurisdiction=Virginia
|
||||||
|
jurisdiction=New_York
|
||||||
|
jurisdiction=Michigan
|
||||||
|
jurisdiction=Nevada
|
||||||
|
jurisdiction=New_York
|
||||||
|
jurisdiction=Delaware
|
||||||
|
jurisdiction=California
|
||||||
|
jurisdiction=New_York
|
||||||
|
jurisdiction=New_York
|
||||||
|
jurisdiction=California
|
||||||
|
jurisdiction=New_Jersey
|
||||||
|
jurisdiction=Missouri
|
||||||
|
jurisdiction=Delaware
|
||||||
|
jurisdiction=Texas
|
||||||
|
jurisdiction=New_Jersey
|
||||||
|
jurisdiction=New_York
|
||||||
|
jurisdiction=Delaware
|
||||||
|
jurisdiction=Missouri
|
||||||
|
jurisdiction=Delaware
|
||||||
|
jurisdiction=Nevada
|
||||||
|
jurisdiction=Florida
|
||||||
|
jurisdiction=Delaware
|
||||||
|
jurisdiction=Oregon
|
||||||
|
jurisdiction=Delaware
|
||||||
|
jurisdiction=New_York
|
||||||
|
jurisdiction=New_York
|
||||||
|
jurisdiction=Texas
|
||||||
|
jurisdiction=New_Jersey
|
||||||
|
jurisdiction=Florida
|
||||||
|
jurisdiction=New_York
|
||||||
|
jurisdiction=New_York
|
||||||
|
jurisdiction=Delaware
|
||||||
|
jurisdiction=Delaware
|
||||||
|
jurisdiction=Oregon
|
||||||
|
jurisdiction=Washington
|
||||||
|
jurisdiction=Alabama
|
||||||
|
jurisdiction=California
|
||||||
|
jurisdiction=Delaware
|
||||||
|
jurisdiction=California
|
||||||
|
jurisdiction=New_York
|
||||||
|
jurisdiction=Delaware
|
||||||
|
jurisdiction=Colorado
|
||||||
|
jurisdiction=Pennsylvania
|
||||||
|
jurisdiction=New_York
|
||||||
|
jurisdiction=Indiana
|
||||||
|
jurisdiction=Delaware
|
||||||
|
jurisdiction=Pennsylvania
|
||||||
|
jurisdiction=Massachusetts
|
||||||
|
jurisdiction=Massachusetts
|
||||||
|
jurisdiction=New_York
|
||||||
|
jurisdiction=Ohio
|
||||||
|
jurisdiction=Illinois
|
||||||
|
jurisdiction=California
|
||||||
|
jurisdiction=California
|
||||||
|
jurisdiction=California
|
||||||
|
jurisdiction=Oregon
|
||||||
|
jurisdiction=Texas
|
||||||
|
jurisdiction=New_York
|
||||||
|
jurisdiction=Michigan
|
||||||
|
jurisdiction=Delaware
|
||||||
|
jurisdiction=California
|
||||||
|
jurisdiction=Florida
|
||||||
|
jurisdiction=California
|
||||||
|
jurisdiction=Ohio
|
||||||
|
jurisdiction=New_York
|
||||||
|
jurisdiction=Massachusetts
|
||||||
|
jurisdiction=Delaware
|
||||||
|
jurisdiction=Georgia
|
||||||
|
jurisdiction=New_York
|
||||||
|
jurisdiction=Massachusetts
|
||||||
|
jurisdiction=Texas
|
||||||
|
jurisdiction=New_York
|
||||||
|
jurisdiction=Pennsylvania
|
||||||
|
jurisdiction=Michigan
|
||||||
|
jurisdiction=Washington
|
||||||
|
jurisdiction=New_York
|
||||||
|
jurisdiction=Missouri
|
||||||
|
jurisdiction=California
|
||||||
|
jurisdiction=California
|
||||||
|
jurisdiction=California
|
||||||
|
jurisdiction=Delaware
|
||||||
|
jurisdiction=Florida
|
||||||
|
jurisdiction=Ohio
|
||||||
|
jurisdiction=Delaware
|
||||||
|
jurisdiction=New_York
|
||||||
|
jurisdiction=New_York
|
||||||
|
jurisdiction=Pennsylvania
|
||||||
|
jurisdiction=New_York
|
||||||
|
jurisdiction=Illinois
|
||||||
|
jurisdiction=California
|
||||||
|
jurisdiction=Florida
|
||||||
|
jurisdiction=New_York
|
||||||
|
jurisdiction=Connecticut
|
||||||
|
jurisdiction=California
|
||||||
|
jurisdiction=Delaware
|
|
Loading…
Reference in New Issue
Block a user