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
I managed to get my code running fine, thanks for your response.
I have another question , I am trying to make the code smoother, right now in order to create a dataset object I have to save my variable to a .tsv file first, and then use the load_custom_dataset_from_folder method to load the data from .tsv into empty dataset object. without this object obviously the get_corpus() method wouldn't do its magic. See the sample code below.
So basically the question is: is there a way to directly pass my variable to a dataset object without saving and loading?
Hello, sorry for the late reply.
If you need the dataset only for the computation of the coherence, then you can directly define the "texts" as a list of lists of strings. I.e.
texts=[['a', 'b', 'c'], ['a', 'd', 'e'], ...]
This will not require to save and load the dataset.
Let me know if this helped :)
Hi Silvia
I managed to get my code running fine, thanks for your response.
I have another question , I am trying to make the code smoother, right now in order to create a dataset object I have to save my variable to a .tsv file first, and then use the
load_custom_dataset_from_folder
method to load the data from .tsv into empty dataset object. without this object obviously theget_corpus()
method wouldn't do its magic. See the sample code below.So basically the question is: is there a way to directly pass my variable to a
dataset
object without saving and loading?Originally posted by @srashtchi in #68 (comment)
The text was updated successfully, but these errors were encountered: