You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The text was updated successfully, but these errors were encountered:
miglen
changed the title
Да се направи извадка на думите от електронните издания на БАН
Да се направи извадка на лексикалната база от данни на БАН
Jul 18, 2018
python3 - <<-EOF
import re
import requests
bg_alphabet = "абвгдежзийклмнопрстуфхцчшщъыюя"
for word in bg_alphabet:
r = requests.post("http://ibl.bas.bg/infolex/neologisms.php", data={'search_param': 'all', 'word': word})
neologisms = re.findall(r'<dt>[0-9]{1,5}\. (.+?) <small>', r.text)
for neolog in neologisms:
print(neolog)
EOF
python3 - <<-EOF
import re
import requests
bg_alphabet = "абвгдежзийклмнопрстуфхцчшщъыюя"
for word in bg_alphabet:
r = requests.post("http://ibl.bas.bg/infolex/idioms.php", data={'search_param': 'all', 'word': word})
all_idioms = re.findall(r'<br\/><dt>[0-9]{1,5}\. (.+?)<\/dt><dd>', r.text)
for idiom in all_idioms:
sub_idioms = re.findall(r'(\w+)', idiom.lower())
for sub_idiom in sub_idioms:
if len(sub_idiom) >= 3:
print(sub_idiom)
EOF
Източник: http://ibl.bas.bg/lib/
База: http://ibl.bas.bg/leksikalna-baza-danni/
Неологизми: http://ibl.bas.bg/infolex/neologisms.php
The text was updated successfully, but these errors were encountered: