Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NGramMap Service Implemetation #7

Merged
merged 2 commits into from
Jun 30, 2024
Merged

NGramMap Service Implemetation #7

merged 2 commits into from
Jun 30, 2024

Conversation

s-bose7
Copy link
Owner

@s-bose7 s-bose7 commented Jun 29, 2024

Fixes #3

}
TimeSeries weightedSeries = new TimeSeries(oneGramMap.get(word), startYear, endYear);
for(Map.Entry<Integer, Double> entry : weightedSeries.entrySet()) {
entry.setValue(entry.getValue()/yearWiseCountMap.get(entry.getKey()));
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Alternatively timeseries.divideBy can be used to get the weighted history.

Responsible for parsing through the CSV files and storing the data to appropriate structures.
Provides various convenient methods for interacting with Google’s NGrams dataset.
@s-bose7 s-bose7 merged commit 54022fb into main Jun 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Implement NgramMap service
1 participant