Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ndleah/python-mini-project
/ remap_bigram
Function
remap_bigram
Text_Predication/text_prediction.py:34–39 ·
view source on GitHub ↗
(corpus)
Source
from the content-addressed store, hash-verified
32
33
34
def
remap_bigram(corpus):
35
# Extract bigrams from each sentence in the corpus
36
corpus_bigram = []
37
for
sentence in corpus:
38
corpus_bigram.append(list(bigrams(sentence)))
39
return
corpus_bigram
40
41
42
def
vocab(corpus):
Callers
1
prediction
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected