This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy as np | |
from nltk import word_tokenize | |
corpus = ["La vie est courte mais la vie peut paraître longue","La nuit est proche"] | |
#definir deux phrases du corpus | |
phrase_1 = "La vie est courte mais la vie peut paraître longue" | |
phrase_2 = "La nuit est proche" | |
# fonction retournant un vocabulaire |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy as np | |
from nltk import word_tokenize | |
corpus = ["Life is short but life can seem long","The night is near"] | |
#definir deux phrases du corpus | |
sentence_1 = "Life is short but life can seem long" | |
sentence_2 = "The night is near" | |
# fonction retournant un vocabulaire |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy |