dictabert-char-spacefix

2
license:cc-by-4.0
by
dicta-il
Other
OTHER
New
2 downloads
Early-stage
Edge AI:
Mobile
Laptop
Server
Unknown
Mobile
Laptop
Server
Quick Summary

DictaBERT-char-spacefix: A finetuned BERT model for restoring missing spaces in Hebrew texts.

Code Examples

Classifier returns LABEL_1 if there should be a space before the characterpythontransformers
from transformers import pipeline

oracle = pipeline('token-classification', model='dicta-il/dictabert-char-spacefix')

text = 'בשנת 1948 השליםאפרים קישון אתלימודיובפיסולמתכת ובתולדותהאמנות והחל לפרסםמאמרים הומוריסטיים'

raw_output = oracle(text)

# Classifier returns LABEL_1 if there should be a space before the character
text_output = ''.join((' ' if o['entity'] == 'LABEL_1' else '') + o['word'] for o in raw_output)
print(text_output)
Classifier returns LABEL_1 if there should be a space before the characterpythontransformers
from transformers import pipeline

oracle = pipeline('token-classification', model='dicta-il/dictabert-char-spacefix')

text = 'בשנת 1948 השליםאפרים קישון אתלימודיובפיסולמתכת ובתולדותהאמנות והחל לפרסםמאמרים הומוריסטיים'

raw_output = oracle(text)

# Classifier returns LABEL_1 if there should be a space before the character
text_output = ''.join((' ' if o['entity'] == 'LABEL_1' else '') + o['word'] for o in raw_output)
print(text_output)
Classifier returns LABEL_1 if there should be a space before the characterpythontransformers
from transformers import pipeline

oracle = pipeline('token-classification', model='dicta-il/dictabert-char-spacefix')

text = 'בשנת 1948 השליםאפרים קישון אתלימודיובפיסולמתכת ובתולדותהאמנות והחל לפרסםמאמרים הומוריסטיים'

raw_output = oracle(text)

# Classifier returns LABEL_1 if there should be a space before the character
text_output = ''.join((' ' if o['entity'] == 'LABEL_1' else '') + o['word'] for o in raw_output)
print(text_output)
Classifier returns LABEL_1 if there should be a space before the characterpythontransformers
from transformers import pipeline

oracle = pipeline('token-classification', model='dicta-il/dictabert-char-spacefix')

text = 'בשנת 1948 השליםאפרים קישון אתלימודיובפיסולמתכת ובתולדותהאמנות והחל לפרסםמאמרים הומוריסטיים'

raw_output = oracle(text)

# Classifier returns LABEL_1 if there should be a space before the character
text_output = ''.join((' ' if o['entity'] == 'LABEL_1' else '') + o['word'] for o in raw_output)
print(text_output)
Classifier returns LABEL_1 if there should be a space before the characterpythontransformers
from transformers import pipeline

oracle = pipeline('token-classification', model='dicta-il/dictabert-char-spacefix')

text = 'בשנת 1948 השליםאפרים קישון אתלימודיובפיסולמתכת ובתולדותהאמנות והחל לפרסםמאמרים הומוריסטיים'

raw_output = oracle(text)

# Classifier returns LABEL_1 if there should be a space before the character
text_output = ''.join((' ' if o['entity'] == 'LABEL_1' else '') + o['word'] for o in raw_output)
print(text_output)
Classifier returns LABEL_1 if there should be a space before the characterpythontransformers
from transformers import pipeline

oracle = pipeline('token-classification', model='dicta-il/dictabert-char-spacefix')

text = 'בשנת 1948 השליםאפרים קישון אתלימודיובפיסולמתכת ובתולדותהאמנות והחל לפרסםמאמרים הומוריסטיים'

raw_output = oracle(text)

# Classifier returns LABEL_1 if there should be a space before the character
text_output = ''.join((' ' if o['entity'] == 'LABEL_1' else '') + o['word'] for o in raw_output)
print(text_output)
Classifier returns LABEL_1 if there should be a space before the characterpythontransformers
from transformers import pipeline

oracle = pipeline('token-classification', model='dicta-il/dictabert-char-spacefix')

text = 'בשנת 1948 השליםאפרים קישון אתלימודיובפיסולמתכת ובתולדותהאמנות והחל לפרסםמאמרים הומוריסטיים'

raw_output = oracle(text)

# Classifier returns LABEL_1 if there should be a space before the character
text_output = ''.join((' ' if o['entity'] == 'LABEL_1' else '') + o['word'] for o in raw_output)
print(text_output)
Classifier returns LABEL_1 if there should be a space before the characterpythontransformers
from transformers import pipeline

oracle = pipeline('token-classification', model='dicta-il/dictabert-char-spacefix')

text = 'בשנת 1948 השליםאפרים קישון אתלימודיובפיסולמתכת ובתולדותהאמנות והחל לפרסםמאמרים הומוריסטיים'

raw_output = oracle(text)

# Classifier returns LABEL_1 if there should be a space before the character
text_output = ''.join((' ' if o['entity'] == 'LABEL_1' else '') + o['word'] for o in raw_output)
print(text_output)
Classifier returns LABEL_1 if there should be a space before the characterpythontransformers
from transformers import pipeline

oracle = pipeline('token-classification', model='dicta-il/dictabert-char-spacefix')

text = 'בשנת 1948 השליםאפרים קישון אתלימודיובפיסולמתכת ובתולדותהאמנות והחל לפרסםמאמרים הומוריסטיים'

raw_output = oracle(text)

# Classifier returns LABEL_1 if there should be a space before the character
text_output = ''.join((' ' if o['entity'] == 'LABEL_1' else '') + o['word'] for o in raw_output)
print(text_output)
Classifier returns LABEL_1 if there should be a space before the characterpythontransformers
from transformers import pipeline

oracle = pipeline('token-classification', model='dicta-il/dictabert-char-spacefix')

text = 'בשנת 1948 השליםאפרים קישון אתלימודיובפיסולמתכת ובתולדותהאמנות והחל לפרסםמאמרים הומוריסטיים'

raw_output = oracle(text)

# Classifier returns LABEL_1 if there should be a space before the character
text_output = ''.join((' ' if o['entity'] == 'LABEL_1' else '') + o['word'] for o in raw_output)
print(text_output)
Classifier returns LABEL_1 if there should be a space before the characterpythontransformers
from transformers import pipeline

oracle = pipeline('token-classification', model='dicta-il/dictabert-char-spacefix')

text = 'בשנת 1948 השליםאפרים קישון אתלימודיובפיסולמתכת ובתולדותהאמנות והחל לפרסםמאמרים הומוריסטיים'

raw_output = oracle(text)

# Classifier returns LABEL_1 if there should be a space before the character
text_output = ''.join((' ' if o['entity'] == 'LABEL_1' else '') + o['word'] for o in raw_output)
print(text_output)
Classifier returns LABEL_1 if there should be a space before the characterpythontransformers
from transformers import pipeline

oracle = pipeline('token-classification', model='dicta-il/dictabert-char-spacefix')

text = 'בשנת 1948 השליםאפרים קישון אתלימודיובפיסולמתכת ובתולדותהאמנות והחל לפרסםמאמרים הומוריסטיים'

raw_output = oracle(text)

# Classifier returns LABEL_1 if there should be a space before the character
text_output = ''.join((' ' if o['entity'] == 'LABEL_1' else '') + o['word'] for o in raw_output)
print(text_output)
Classifier returns LABEL_1 if there should be a space before the characterpythontransformers
from transformers import pipeline

oracle = pipeline('token-classification', model='dicta-il/dictabert-char-spacefix')

text = 'בשנת 1948 השליםאפרים קישון אתלימודיובפיסולמתכת ובתולדותהאמנות והחל לפרסםמאמרים הומוריסטיים'

raw_output = oracle(text)

# Classifier returns LABEL_1 if there should be a space before the character
text_output = ''.join((' ' if o['entity'] == 'LABEL_1' else '') + o['word'] for o in raw_output)
print(text_output)
Classifier returns LABEL_1 if there should be a space before the characterpythontransformers
from transformers import pipeline

oracle = pipeline('token-classification', model='dicta-il/dictabert-char-spacefix')

text = 'בשנת 1948 השליםאפרים קישון אתלימודיובפיסולמתכת ובתולדותהאמנות והחל לפרסםמאמרים הומוריסטיים'

raw_output = oracle(text)

# Classifier returns LABEL_1 if there should be a space before the character
text_output = ''.join((' ' if o['entity'] == 'LABEL_1' else '') + o['word'] for o in raw_output)
print(text_output)
Classifier returns LABEL_1 if there should be a space before the characterpythontransformers
from transformers import pipeline

oracle = pipeline('token-classification', model='dicta-il/dictabert-char-spacefix')

text = 'בשנת 1948 השליםאפרים קישון אתלימודיובפיסולמתכת ובתולדותהאמנות והחל לפרסםמאמרים הומוריסטיים'

raw_output = oracle(text)

# Classifier returns LABEL_1 if there should be a space before the character
text_output = ''.join((' ' if o['entity'] == 'LABEL_1' else '') + o['word'] for o in raw_output)
print(text_output)
Classifier returns LABEL_1 if there should be a space before the characterpythontransformers
from transformers import pipeline

oracle = pipeline('token-classification', model='dicta-il/dictabert-char-spacefix')

text = 'בשנת 1948 השליםאפרים קישון אתלימודיובפיסולמתכת ובתולדותהאמנות והחל לפרסםמאמרים הומוריסטיים'

raw_output = oracle(text)

# Classifier returns LABEL_1 if there should be a space before the character
text_output = ''.join((' ' if o['entity'] == 'LABEL_1' else '') + o['word'] for o in raw_output)
print(text_output)
Classifier returns LABEL_1 if there should be a space before the characterpythontransformers
from transformers import pipeline

oracle = pipeline('token-classification', model='dicta-il/dictabert-char-spacefix')

text = 'בשנת 1948 השליםאפרים קישון אתלימודיובפיסולמתכת ובתולדותהאמנות והחל לפרסםמאמרים הומוריסטיים'

raw_output = oracle(text)

# Classifier returns LABEL_1 if there should be a space before the character
text_output = ''.join((' ' if o['entity'] == 'LABEL_1' else '') + o['word'] for o in raw_output)
print(text_output)
Classifier returns LABEL_1 if there should be a space before the characterpythontransformers
from transformers import pipeline

oracle = pipeline('token-classification', model='dicta-il/dictabert-char-spacefix')

text = 'בשנת 1948 השליםאפרים קישון אתלימודיובפיסולמתכת ובתולדותהאמנות והחל לפרסםמאמרים הומוריסטיים'

raw_output = oracle(text)

# Classifier returns LABEL_1 if there should be a space before the character
text_output = ''.join((' ' if o['entity'] == 'LABEL_1' else '') + o['word'] for o in raw_output)
print(text_output)
Classifier returns LABEL_1 if there should be a space before the characterpythontransformers
from transformers import pipeline

oracle = pipeline('token-classification', model='dicta-il/dictabert-char-spacefix')

text = 'בשנת 1948 השליםאפרים קישון אתלימודיובפיסולמתכת ובתולדותהאמנות והחל לפרסםמאמרים הומוריסטיים'

raw_output = oracle(text)

# Classifier returns LABEL_1 if there should be a space before the character
text_output = ''.join((' ' if o['entity'] == 'LABEL_1' else '') + o['word'] for o in raw_output)
print(text_output)
Classifier returns LABEL_1 if there should be a space before the characterpythontransformers
from transformers import pipeline

oracle = pipeline('token-classification', model='dicta-il/dictabert-char-spacefix')

text = 'בשנת 1948 השליםאפרים קישון אתלימודיובפיסולמתכת ובתולדותהאמנות והחל לפרסםמאמרים הומוריסטיים'

raw_output = oracle(text)

# Classifier returns LABEL_1 if there should be a space before the character
text_output = ''.join((' ' if o['entity'] == 'LABEL_1' else '') + o['word'] for o in raw_output)
print(text_output)
Classifier returns LABEL_1 if there should be a space before the characterpythontransformers
from transformers import pipeline

oracle = pipeline('token-classification', model='dicta-il/dictabert-char-spacefix')

text = 'בשנת 1948 השליםאפרים קישון אתלימודיובפיסולמתכת ובתולדותהאמנות והחל לפרסםמאמרים הומוריסטיים'

raw_output = oracle(text)

# Classifier returns LABEL_1 if there should be a space before the character
text_output = ''.join((' ' if o['entity'] == 'LABEL_1' else '') + o['word'] for o in raw_output)
print(text_output)
Classifier returns LABEL_1 if there should be a space before the characterpythontransformers
from transformers import pipeline

oracle = pipeline('token-classification', model='dicta-il/dictabert-char-spacefix')

text = 'בשנת 1948 השליםאפרים קישון אתלימודיובפיסולמתכת ובתולדותהאמנות והחל לפרסםמאמרים הומוריסטיים'

raw_output = oracle(text)

# Classifier returns LABEL_1 if there should be a space before the character
text_output = ''.join((' ' if o['entity'] == 'LABEL_1' else '') + o['word'] for o in raw_output)
print(text_output)

Deploy This Model

Production-ready deployment in minutes

Together.ai

Instant API access to this model

Fastest API

Production-ready inference API. Start free, scale to millions.

Try Free API

Replicate

One-click model deployment

Easiest Setup

Run models in the cloud with simple API. No DevOps required.

Deploy Now

Disclosure: We may earn a commission from these partners. This helps keep LLMYourWay free.